commit 7d99f678c9513cacbdbf5ccf2974cb609e04443c
parent 430ed508127d24aaab0da816db658a4b52e395c5
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 25 Jan 2016 17:08:55 +0100
url flags
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontend_lib/util.php b/src/frontend_lib/util.php
@@ -5,7 +5,7 @@ function get(&$var, $default=null) {
}
function url_join($base, $path, $strip=false) {
- $flags = strip ? (http\Url::JOIN_PATH|http\URL::SANITIZE_PATH) : 0;
+ $flags = strip ? (http\Url::STRIP_PATH|http\URL::STRIP_QUERY) : 0;
return (new http\URL($base, null, $flags))
->mod(array ("path" => $path), http\Url::JOIN_PATH|http\URL::SANITIZE_PATH)
->toString();