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

[email protected] (Hannes Magnusson)
Newsgroups php.webmaster
Message-ID <[email protected]>
Commit:    d7370d70b5f5ad7e16b2580d8db98b012b76447a
Author:    Hannes Magnusson <[email protected]>         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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.