Browse code

Appache redirect L3 PATH variable support

RafaƂ Szklarczyk authored on 23/08/2019 13:32:49
Showing 1 changed files
... ...
@@ -14,6 +14,8 @@ class Request{
14 14
     public function __construct(){
15 15
         if(isset($_SERVER['L3_PATH']))
16 16
             $this->path = $_SERVER['L3_PATH'];
17
+        else if(isset($_SERVER['REDIRECT_L3_PATH']))
18
+            $this->path = $_SERVER['REDIRECT_L3_PATH'];
17 19
         $this->method = $_SERVER['REQUEST_METHOD'];
18 20
         $this->accept = isset($_SERVER['HTTP_ACCEPT'])?$_SERVER['HTTP_ACCEPT']:"";
19 21
         $this->acceptTypes = $this->parseAccept($this->accept);