Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1872
diff.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:14 PM
2014-11-21 20:14:43 (UTC+0)
Size
682 B
Referenced Files
None
Subscribers
None
diff.patch
View Options
Index: EditPage.php
===================================================================
--- EditPage.php (revision 32374)
+++ EditPage.php (working copy)
@@ -542,6 +542,9 @@
$this->mMetaData = rtrim( $request->getText( 'metadata' ) );
# Truncate for whole multibyte characters. +5 bytes for ellipsis
$this->summary = $wgLang->truncate( $request->getText( 'wpSummary' ), 250 );
+
+ # Remove extra headings and whitespace from summaries and new sections.
+ $this->summary = trim(preg_replace('/^=+(.*?)=+$/', '$1', trim($this->summary)));
$this->edittime = $request->getVal( 'wpEdittime' );
$this->starttime = $request->getVal( 'wpStarttime' );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1524
Default Alt Text
diff.patch (682 B)
Attached To
Mode
T3600: Remove section markup inside heading text when using "section=new"
Attached
Detach File
Event Timeline
Log In to Comment