Last modified: 2010-05-15 16:02:55 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 T17275, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15275 - apprefix parameter ignores spaces at the end
apprefix parameter ignores spaces at the end
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-22 22:08 UTC by AlexSm
Modified: 2010-05-15 16:02 UTC (History)
3 users (show)

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


Attachments

Description AlexSm 2008-08-22 22:08:36 UTC
See URL above:...&apprefix=Test_ with underscore (could be %20 or +) at the end.

Result: "Test", "Test-Driven", ... (last space is ignored).
Expected: "Test (Unix)", "Test Drive", ...

Looks like the prefix is normalized as if it was a real title, thus loosing extra spaces. Note that [[Special:PrefixIndex]] has the same problem.
Comment 1 Roan Kattouw 2008-08-24 18:46:13 UTC
Will try to fix this. As a workaround, you could try apprefix=Test&apfrom=Test_
Comment 2 Roan Kattouw 2008-08-25 05:42:10 UTC
Fixed in r39935
Comment 3 Daniel Friesen 2008-08-25 06:59:59 UTC
Reverted in r39938. That was a poor way to 'fix' the bug. It just caused a number of more issues.

The best way to fix this, is probably to pad the title with a single character such as '.' before normalizing it, and then strip that single character off after we're done.
Comment 4 Roan Kattouw 2008-09-04 19:50:57 UTC
(In reply to comment #3)
> Reverted in r39938. That was a poor way to 'fix' the bug. It just caused a
> number of more issues.
> 
> The best way to fix this, is probably to pad the title with a single character
> such as '.' before normalizing it, and then strip that single character off
> after we're done.
> 

Fixed again in r40088

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


Navigation
Links