Browse Source

better basePath support

Maurits van der Schee 5 years ago
parent
commit
bc16e9a6ba
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api.php

+ 1
- 1
api.php View File

@@ -4810,7 +4810,7 @@ class SimpleRouter implements Router
4810 4810
             return $basePath;
4811 4811
         }
4812 4812
         if (isset($_SERVER['REQUEST_URI'])) {
4813
-            $fullPath = explode('?', $_SERVER['REQUEST_URI'])[0];
4813
+            $fullPath = urldecode(explode('?', $_SERVER['REQUEST_URI'])[0]);
4814 4814
             if (isset($_SERVER['PATH_INFO'])) {
4815 4815
                 $path = $_SERVER['PATH_INFO'];
4816 4816
                 if (substr($fullPath, -1 * strlen($path)) == $path) {

Loading…
Cancel
Save