https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113922
Revision: 113922
Author: maxsem
Date: 2012-03-15 15:21:46 +0000 (Thu, 15 Mar 2012)
Log Message:
-----------
Bug 35051 - [Regression] If heading has a trailing space after == then its name
is not preloaded into edit summary on section edit. Regression from r105380.
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/EditPage.php
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2012-03-15 15:10:09 UTC (rev 113921)
+++ trunk/phase3/RELEASE-NOTES-1.19 2012-03-15 15:21:46 UTC (rev 113922)
@@ -20,6 +20,8 @@
"movepage-moved"
* (bug 34841) Edit links are no longer displayed when display old page versions
* (bug 34889) User name should be normalized on Special:Contributions
+* (bug 35051) If heading has a trailing space after == then its name is not
+ preloaded into edit summary on section edit
=== Configuration changes in 1.19 ===
* Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php 2012-03-15 15:10:09 UTC (rev 113921)
+++ trunk/phase3/includes/EditPage.php 2012-03-15 15:21:46 UTC (rev 113922)
@@ -1872,7 +1872,7 @@
* @return Mixed|string or false
*/
public static function extractSectionTitle( $text ) {
- preg_match( "/^(=+)(.+)\\1(\n|$)/i", $text, $matches );
+ preg_match( "/^(=+)(.+)\\1\\s*(\n|$)/i", $text, $matches );
if ( !empty( $matches[2] ) ) {
global $wgParser;
return $wgParser->stripSectionName( trim( $matches[2] )
);
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs