Page MenuHomePhabricator

& in expressions cuts adress bar link off
Closed, DeclinedPublic

Description

Author: mkill

Description:
The bug appeared while creating
http://www.omegawiki.org/DefinedMeaning:Dungeons_and_Dragons_%28450997%29

If you click on the syntranses that contain & (ampersand), the expression is cut
off before the ampersand in the adress bar. The software needs to wrap around
the & to display the correct link.


Version: unspecified
Severity: minor
OS: Windows XP
Platform: PC
URL: http://www.omegawiki.org/DefinedMeaning:Dungeons_and_Dragons_(450997)

Details

Reference
bz9007

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:34 PM
bzimport set Reference to bz9007.
bzimport added a subscriber: Unknown Object (MLST).

The problem here is probably the rewrite rules; it looks like the site is
rewriting URLs to a form like index.php?title=$1 ... this will break the
parameter when a %26 occurs because Apache forces it to be de-escaped to & for
reasons not known to mortal man.

As a hackaround on the broken rewrite scheme, you could use the patch for Apache
1.3.x we provide which adds a rewrite function to re-escape the & in the title.

See http://meta.wikimedia.org/wiki/Using_a_very_short_URL#Patching_Apache

A cleaner method with an Alias may be preferable, depending on configuration.

kipmaster wrote:

Seems to work as expected now.