This was causing inconsistencies between anchors in editsummaries and those actually used in pages.
See also bug 18431
a fatal error
* (bug 23465) Don't ignore the predefined destination filename on
Special:Upload after following a red link
+* Correct the escaping of the autosummary URI fragments.
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent.
$section = str_replace( '[[:', '', $section );
$section = str_replace( '[[', '', $section );
$section = str_replace( ']]', '', $section );
+
+ # Most of Title:: expects fragments to be escaped
+ $section = Title::escapeFragmentForURL( $section );
if ( $local ) {
$sectionTitle = Title::newFromText( '#' . $section );
} else {