Index: trunk/phase3/includes/Title.php |
— | — | @@ -770,7 +770,7 @@ |
771 | 771 | if( Namespace::getUser() == $this->mNamespace |
772 | 772 | and preg_match("/\\.(css|js)$/", $this->mTextform ) |
773 | 773 | and !$wgUser->isSysop() |
774 | | - and !preg_match('/^'.preg_quote($wgUser->getName(), '/').'/', $this->mTextform) ) |
| 774 | + and !preg_match('/^'.preg_quote($wgUser->getName(), '/').'\//', $this->mTextform) ) |
775 | 775 | { return false; } |
776 | 776 | $ur = $wgUser->getRights(); |
777 | 777 | foreach ( $this->getRestrictions() as $r ) { |
— | — | @@ -837,7 +837,7 @@ |
838 | 838 | */ |
839 | 839 | function userCanEditCssJsSubpage() { |
840 | 840 | global $wgUser; |
841 | | - return ( $wgUser->isSysop() or preg_match('/^'.preg_quote($wgUser->getName()).'/', $this->mTextform) ); |
| 841 | + return ( $wgUser->isSysop() or preg_match('/^'.preg_quote($wgUser->getName(), '/').'\//', $this->mTextform) ); |
842 | 842 | } |
843 | 843 | |
844 | 844 | /** |