com web/php: Allow urlencode \ too: include/manual-lookup.inc

From: Date: Tue, 21 Apr 2015 03:50:29 +0000
Subject: com web/php: Allow urlencode \ too: include/manual-lookup.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-21090@lists.php.net to get a copy of this message
Commit: d7370d70b5f5ad7e16b2580d8db98b012b76447a Author: Hannes Magnusson <bjori@php.net> Mon, 20 Apr 2015 20:50:29 -0700 Parents: a3dcbf63dab8bb43efaa7e811ef0878dc8018408 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d7370d70b5f5ad7e16b2580d8db98b012b76447a Log: Allow urlencode \ too Changed paths: M include/manual-lookup.inc Diff: diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc index b2e6668..77bc9e4 100644 --- a/include/manual-lookup.inc +++ b/include/manual-lookup.inc @@ -39,7 +39,8 @@ function tryprefix($lang, $keyword, $prefix) if (@file_exists($_SERVER['DOCUMENT_ROOT'] . $try)) { return $try; } } - // Replace namespace sperators, and try that (if different) + // urldecode() (%5C == \) Replace namespace sperators, and try that (if different) + $keyword = urldecode($keyword); $noul = str_replace("\\", "-", $keyword); if ($noul != $keyword) { $try = "/manual/${lang}/${prefix}${noul}.php";

« previous php.webmaster (#21090) next »