瀏覽代碼

better basePath support

Maurits van der Schee 5 年之前
父節點
當前提交
bc16e9a6ba
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      api.php

+ 1
- 1
api.php 查看文件

@@ -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…
取消
儲存