Index: branches/REL1_3A/phase3/includes/Title.php |
— | — | @@ -515,7 +515,7 @@ |
516 | 516 | if( Namespace::getUser() == $this->mNamespace |
517 | 517 | and preg_match("/\\.(css|js)$/", $this->mTextform ) |
518 | 518 | and !$wgUser->isSysop() |
519 | | - and !preg_match("/^".preg_quote($wgUser->getName(), '/')."/", $this->mTextform) ) |
| 519 | + and !preg_match("/^".preg_quote($wgUser->getName(), '/')."\//", $this->mTextform) ) |
520 | 520 | { return false; } |
521 | 521 | $ur = $wgUser->getRights(); |
522 | 522 | foreach ( $this->getRestrictions() as $r ) { |
— | — | @@ -556,7 +556,7 @@ |
557 | 557 | # protect css/js subpages of user pages |
558 | 558 | # XXX: this might be better using restrictions |
559 | 559 | global $wgUser; |
560 | | - return ( $wgUser->isSysop() or preg_match("/^".preg_quote($wgUser->getName())."/", $this->mTextform) ); |
| 560 | + return ( $wgUser->isSysop() or preg_match("/^".preg_quote($wgUser->getName(), '/')."\//", $this->mTextform) ); |
561 | 561 | } |
562 | 562 | |
563 | 563 | # Accessor/initialisation for mRestrictions |