Selaa lähdekoodia

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

Visman 2 vuotta sitten
vanhempi
commit
ed22304e4a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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    = \rawurldecode($uri);
+        $uri    = \rawurldecode(\strtr($uri, '+', ' '));
         $method = $_SERVER['REQUEST_METHOD'];
         $route  = $r->route($method, $uri);
         $page   = null;