Commit 662f0619 authored by Volker Krause's avatar Volker Krause
Browse files

Properly decode string arguments passed in the URL

parent 0db53be2
......@@ -37,6 +37,11 @@ public static function dispatch($handler)
if (!method_exists($handler, $method))
Utils::httpError(400, 'Invalid REST command ' . $method . '.');
for ($i = 1; $i < count($command); $i++) {
if (is_string($command[$i]))
$command[$i] = urldecode($command[$i]);
}
switch(sizeof($command)) {
case 1:
$handler->$method();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment