Browse Source

The + symbol in the uri is a space, and %2B is +

Visman 2 years ago
parent
commit
ed22304e4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Controllers/Routing.php

+ 1 - 1
app/Controllers/Routing.php

@@ -805,7 +805,7 @@ class Routing
             $uri = \substr($uri, 0, $pos);
             $uri = \substr($uri, 0, $pos);
         }
         }
 
 
-        $uri    = \rawurldecode($uri);
+        $uri    = \rawurldecode(\strtr($uri, '+', ' '));
         $method = $_SERVER['REQUEST_METHOD'];
         $method = $_SERVER['REQUEST_METHOD'];
         $route  = $r->route($method, $uri);
         $route  = $r->route($method, $uri);
         $page   = null;
         $page   = null;