Last modified: 2010-05-15 15:33:31 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 T3201, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1201 - single quote in category name and other links tables are broken
single quote in category name and other links tables are broken
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.4.x
All All
: Highest major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
: 1261 1297 1439 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-25 22:21 UTC by Looxix
Modified: 2010-05-15 15:33 UTC (History)
2 users (show)

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


Attachments
Temporary hack for LinksUpdate.php REL1_4 (711 bytes, patch)
2005-01-01 15:56 UTC, Zigger
Details

Description Looxix 2004-12-25 22:21:43 UTC
Since v1.4, adding in an article a category with a name containing a single
quote is broken.

the article is not added to the given category but with to a category name in
which each single quotes (%27) are preceded by a backslash (%5C%27).

Exemple:
* http://fr.wikipedia.org/wiki/Test_cat
[Test cat] is not added to
http://fr.wikipedia.org/wiki/Cat%C3%A9gorie:Abc_l%27edf
but to
http://fr.wikipedia.org/wiki/Cat%C3%A9gorie:Abc_l%5C%27edf
Comment 1 Looxix 2004-12-27 20:03:01 UTC
The same problem affect the links table.
Comment 2 Jean-Frédéric BAECH.ER 2004-12-31 21:26:47 UTC
The problem is not only when creating an article but occurs when modifying an
article too.
Comment 3 Zigger 2005-01-01 15:56:45 UTC
Created attachment 188 [details]
Temporary hack for LinksUpdate.php REL1_4

The category title seems to be incorrectly double-strencoded when written to
the columns categorylinks.cl_to and searchindex.si_text, but is only strencoded
once for writes to cur.cur_text, old.old_text and cur.cur_title.  When
CategoryPage.php looks for articles, the category title is only strencoded
once.

The attachment only fixes writes to categorylinks.cl_to.
Comment 4 Zigger 2005-01-04 16:39:11 UTC
*** Bug 1261 has been marked as a duplicate of this bug. ***
Comment 5 Zigger 2005-01-09 20:22:25 UTC
Probably related to bug 1297
Comment 6 Brion Vibber 2005-01-09 20:39:07 UTC
*** Bug 1297 has been marked as a duplicate of this bug. ***
Comment 7 Brion Vibber 2005-01-09 20:40:20 UTC
Large number of related problems introduced by a misunderstanding in upgrading that file.
Comment 8 Brion Vibber 2005-01-09 21:11:32 UTC
Now fixed in 1.4 code. Have done a quick job to fix up the links tables on wikimedia sites; searchindex will update 
gradually.
Comment 9 Looxix 2005-01-09 22:05:15 UTC
Works for me. Thanks.
Comment 10 Zigger 2005-01-31 15:29:58 UTC
*** Bug 1439 has been marked as a duplicate of this bug. ***

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


Navigation
Links