Last modified: 2011-07-14 00:46:56 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 T22735, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20735 - ajaxcategories.js failed when deleting [[Category:C++]]
ajaxcategories.js failed when deleting [[Category:C++]]
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: DieBuche
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-19 07:25 UTC by Jimmy Xu
Modified: 2011-07-14 00:46 UTC (History)
4 users (show)

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


Attachments

Description Jimmy Xu 2009-09-19 07:25:43 UTC
While attempt to delete [[Category:C++]] on http://translatewiki.net/w/i.php?oldid=1497848 using js2/ajaxcategories.js, firefox gives:

Error: invalid quantifier +(\|[^\]]*)?\]\]
Source File:  http://translatewiki.net/w/mwScriptLoader.php?class=LanguageSelector,SlippyMap,ajax,mwsuggest,ajaxCategories,WT:-|useskin=Modern&urid=240bw-3_1252705792
Line: 171

Seems the regex cannot escape the '+' in category name.
Comment 1 Andrew Garrett 2009-09-21 10:09:39 UTC
Yes, it's a regex escaping issue. Looks like we'll have to home-grow a regex escaping function.
Comment 2 Liangent 2009-09-22 01:31:40 UTC
I think removing categories in JavaScript is not a good idea because of that complex MediaWiki syntax...
Comment 3 DieBuche 2011-07-13 16:19:49 UTC
Assigning my self, fixed in local trunk
Comment 4 DieBuche 2011-07-13 22:41:32 UTC
r92112

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


Navigation
Links