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";


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to