diff --git a/vendor/Luracast/Restler/Restler.php b/vendor/Luracast/Restler/Restler.php index c2e9b1acb..9aab1ef22 100644 --- a/vendor/Luracast/Restler/Restler.php +++ b/vendor/Luracast/Restler/Restler.php @@ -499,7 +499,7 @@ protected function getPath() = '/' . substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT']) + 1); list($base, $path) = Util::splitCommonPath( - strtok(urldecode($_SERVER['REQUEST_URI']), '?'), //remove query string + strtok($_SERVER['REQUEST_URI'], '?'), //remove query string $_SERVER['SCRIPT_NAME'] ); diff --git a/vendor/Luracast/Restler/Routes.php b/vendor/Luracast/Restler/Routes.php index 73e78dc00..9fe3303cb 100644 --- a/vendor/Luracast/Restler/Routes.php +++ b/vendor/Luracast/Restler/Routes.php @@ -430,7 +430,7 @@ public static function find($path, $httpMethod, $details = $value[$httpMethod]['metadata']['param'][$index]; if ($k{0} == 's' || strpos($k, static::pathVarTypeOf($v)) === 0) { //remove the newlines - $data[$details['name']] = trim($v, PHP_EOL); + $data[$details['name']] = trim(urldecode($v), PHP_EOL); } else { $status = 400; $message = 'invalid value specified for `'