Ver Fonte

Fixed: path error

Zhu Jinhui há 6 anos atrás
pai
commit
b29122e45a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Request/Url/Base.php

+ 1 - 1
src/Request/Url/Base.php

@@ -182,7 +182,7 @@ abstract class Base
     public function getPath($path = '')
     {
         if (empty($path)) {
-            $path = $_SERVER['SCRIPT_NAME'];
+            $path = $_SERVER['REQUEST_URI'];
         }
         return substr($path, 0, (strrpos($path, '/')));
     }