Browse code

Empty string in request path fix

RafaƂ Szklarczyk authored on 21/08/2019 13:37:50
Showing 1 changed files
... ...
@@ -45,8 +45,9 @@ class Application{
45 45
     }
46 46
 
47 47
     public function basePath(){
48
-        if(isset($this->request->path))
48
+        if(isset($this->request->path)&&$this->request->path==''){
49 49
             return strstr($_SERVER['REQUEST_URI'], $this->request->path, true);
50
+        }
50 51
         else
51 52
             return $_SERVER['REQUEST_URI'];
52 53
     }