Ver código fonte

fixed request uri query string

develop
Robin Thoni 8 anos atrás
pai
commit
306b45109c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/Utils/Controller/LuticateApplication.php

+ 1
- 1
src/Utils/Controller/LuticateApplication.php Ver arquivo

@@ -139,7 +139,7 @@ class LuticateApplication implements MessageComponentInterface
139 139
     public function runHttp()
140 140
     {
141 141
         $httpMethod = $_SERVER['REQUEST_METHOD'];
142
-        $url = $_SERVER['REQUEST_URI'];
142
+        $url = strtok($_SERVER["REQUEST_URI"],'?');
143 143
         $parameters = array_merge($_GET, $_POST);
144 144
         
145 145
         $r = $this->dispatch($httpMethod, $url, $parameters);

Carregando…
Cancelar
Salvar