Index: trunk/extensions/OpenID/SpecialOpenIDServer.body.php |
— | — | @@ -735,7 +735,9 @@ |
736 | 736 | $pattern = str_replace( '?', '\?', $pattern ); |
737 | 737 | |
738 | 738 | /* remove "Special:OpenIDXRDS/" to allow construction of a valid user page name */ |
739 | | - $relative = preg_replace("!Special:OpenIDXRDS/!", "", $relative); |
| 739 | + $specialPagePrefix = SpecialPage::getTitleFor('OpenIDXRDS'); |
| 740 | + if ( $specialPagePrefix != "Special:OpenIDXRDS" ) $specialPagePrefix = "({$specialPagePrefix}|Special:OpenIDXRDS)"; |
| 741 | + $relative = preg_replace("!" . $specialPagePrefix . "/!", "", $relative); |
740 | 742 | |
741 | 743 | # Can't have a pound-sign in the relative, since that's for fragments |
742 | 744 | if ( !preg_match( "#$pattern#", $relative, $matches ) ) { |