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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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