Per http://www.php.net/manual/en/function.preg-replace.php \ must be doubled in $replacement
* (bug 21161) Changing $wgCacheEpoch now always invalidates file cache
* (bug 20268) Fixed row count estimation on SQLite backend
* (bug 20275) Fixed LIKE queries on SQLite backend
+* (bug 21234) Moving subpages of titles containing \\ now works properly
== API changes in 1.16 ==
continue;
$newPageName = preg_replace(
'#^'.preg_quote( $this->getDBkey(), '#' ).'#',
- $nt->getDBkey(), $oldSubpage->getDBkey() );
+ str_replace( '\\', '\\\\', $nt->getDBkey() ), # bug 21234
+ $oldSubpage->getDBkey() );
if( $oldSubpage->isTalkPage() ) {
$newNs = $nt->getTalkPage()->getNamespace();
} else {
$newPageName = preg_replace(
'#^'.preg_quote( $ot->getDBkey(), '#' ).'#',
- $nt->getDBkey(),
+ str_replace( '\\', '\\\\', $nt->getDBkey() ), # bug 21234
$oldSubpage->getDBkey()
);
if( $oldSubpage->isTalkPage() ) {