We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 601573a8 authored by Evan Prodromou's avatar Evan Prodromou

don't forget to add qstring to static paths

parent f6f147c0
...@@ -147,7 +147,7 @@ class URLMapper ...@@ -147,7 +147,7 @@ class URLMapper
} }
} }
// success // success
return $tryPath; $path = $tryPath;
} else { } else {
list($tryArgs, $format, $paramNames) = $candidate; list($tryArgs, $format, $paramNames) = $candidate;
...@@ -171,15 +171,18 @@ class URLMapper ...@@ -171,15 +171,18 @@ class URLMapper
} }
$path = vsprintf($format, $toFormat); $path = vsprintf($format, $toFormat);
}
if (!empty($qstring)) { if (!empty($qstring)) {
$path .= '?' . http_build_query($qstring); $formatted = http_build_query($qstring);
} $path .= '?' . $formatted;
return $path;
} }
return $path;
} }
// failure; some reporting twiddles
unset($args['action']); unset($args['action']);
if (empty($args)) { if (empty($args)) {
......
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