r106822 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106821‎ | r106822 | r106823 >
Date:17:30, 20 December 2011
Author:catrope
Status:ok
Tags:
Comment:
And urlencode $language too
Modified paths:
  • /trunk/tools/web-scripts/missing.php (modified) (history)

Diff [purge]

Index: trunk/tools/web-scripts/missing.php
@@ -76,7 +76,7 @@
7777 $projectcode = $projects[$project];
7878 $project = ucfirst( $project ); // for 404 pages message
7979
80 -$location = $url['scheme'] . '://' . $base . 'W' . $projectcode . '/' . $language;
 80+$location = $url['scheme'] . '://' . $base . 'W' . $projectcode . '/' . urlencode( $language );
8181 # Go to the page if specified (look out for slashes), otherwise go to
8282 # the main page Wx/xyz?goto=mainpage (WikimediaIncubator extension takes care of that)
8383 $location .= $page && $page !== '/' ? '/' . $page : '?goto=mainpage';

Status & tagging log