Move the check for legacy/UTF character conversion on incoming URLs from
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 6 Sep 2004 03:01:33 +0000 (03:01 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 6 Sep 2004 03:01:33 +0000 (03:01 +0000)
commite199fe8803b022a7588abdecc39ba45fb0b15ac2
tree2c0fe9fd4575c5edb53477506462cb94c474edc1
parentf74b1d191130d4196f4ec275d84fa2935ef8e025
Move the check for legacy/UTF character conversion on incoming URLs from
Title::newFromURL into WebRequest itself. Should now work on all get params,
so essentially the full URL will be converted.

(The check is not done if the referer matches the canonical server, as before.)

Fixes problem with latin-1 typed URLs introduced by the stricter UTF-8
validation checks running before the conversion check.

One minor glitch; the canonical URL redirection no longer picks up on a
charset conversion. However it's broken anyway and doesn't pick up eg
non-canonical URLs using ?title= instead of / or other such things. Needs
to be improved...
includes/Title.php
includes/WebRequest.php