Last modified: 2010-05-15 15:28:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2985, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 985 - Section name containing '=' confuses auto-summary in section editing
Section name containing '=' confuses auto-summary in section editing
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.3.x
All All
: Normal trivial (vote)
: ---
Assigned To: Rowan Collins [IMSoP]
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-03 04:10 UTC by Rowan Collins [IMSoP]
Modified: 2010-05-15 15:28 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch to change auto-summary regex (878 bytes, patch)
2004-12-03 04:18 UTC, Rowan Collins [IMSoP]
Details

Description Rowan Collins [IMSoP] 2004-12-03 04:10:16 UTC
In a wonderful case of "the multiduplicitousness of life", within a couple of
hours I had cause to edit two sections which contained an equals sign ('='), and
noticed that the automatic summary was truncated at the '='. This appears to be
because of the regular expression used in EditPage.php, which terminates on any
number of '='s. Patch to follow shortly.
Comment 1 Rowan Collins [IMSoP] 2004-12-03 04:18:29 UTC
Created attachment 142 [details]
patch to change auto-summary regex

This changes the regex from "non-greedily look for at least one equals sign" to
"greedily look for a matching number of equals signs". This is more analagous
to what the parser does when it actually renders the headings, and means that
the heading is whatever is within the outermost matching pair of equals signs
on the line.

Oh, and $sectitle wasn't used anywhere else in the file, so I got rid of it.
Comment 2 JeLuF 2004-12-05 23:32:28 UTC
Fixed in 1.4

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links