Page MenuHomePhabricator

Redirect to parent page doesn't work
Open, LowPublic

Description

Author: ayg

Description:
If a subpage contains "#REDIRECT [[../]]", it will not display as a redirect, it
will display as a numbered list with one element, a link to the parent page (so
the .. does get correctly identified as a link to the parent page). If it
contains "#REDIRECT [[../foo]]", the same applies. Neither of these redirect
correctly, as the URL shows.

"#REDIRECT /subpage" works normally.


Version: 1.20.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Simetrical/Redirect_doesn%27t_work

Details

Reference
bz6151

Event Timeline

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

philharnish wrote:

secureAndSplit() returns false because of line 1519 of Title.php (
http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/includes/Title.php ):

if ( strpos( $r, '.' ) !== false &&

( $r === '.' || $r === '..' ||
  strpos( $r, './' ) === 0  ||
  strpos( $r, '../' ) === 0 ||
  strpos( $r, '/./' ) !== false ||
  strpos( $r, '/../' ) !== false ) )

{
return false;
}

It might be possible to add '../' to $wgTitleCache in anticipation.

  • Bug 11965 has been marked as a duplicate of this bug. ***

Thehelpfulonewiki wrote:

Confirmed still an issue - are Phil's comments still valid?