Page MenuHomePhabricator

(strtoupper($string) == "#REDIRECT") && ($string <> "#REDIRECT")
Closed, InvalidPublic

Description

Author: gangleri

Description:
Dear friends, It seams that there are some pages
using "#redirect" (all lowercase leters) instead
of "#REDIRECT" (all capital leters).

It seems to me that these pages are not redirected. Probably
it is written in the documentation somewhere to use capital
letters ONLY. The problem maight be that there are still
pages using $string s where

(strtoupper($string) == "#REDIRECT") && ($string
<> "#REDIRECT")

is TRUE .

Probably the best way to find these pages would be a script.

Regards Reinhardt


Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC
URL: http://en.wikipedia.org/wiki/V%C7%ABlsunga_saga

Details

Reference
bz661

Event Timeline

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

rowan.collins wrote:

This *shouldn't* be a problem. The "#redirect" magic word is set to be case
insensitive in Language.php And indeed, it works for me: e.g.
http://en.wikipedia.org/w/wiki.phtml?title=User:IMSoP/sandbox

Can you give an example of this not working? The supplied URL appears to be
incorrect / unreachable, should it point to somewhere other than en.wikipedia?
It may be that one of the languageXX.php files has accidentally set this to be
case sensitive...

rowan.collins wrote:

Finally managed to load the page referenced. It was a double redirect, and was
working fine - it just dumped you on a page that happened to look very similar
because it, too, was a redirect.

Closing bug as invalid (misunderstanding on part of submitter).