Commit 9994154e authored by Tomáš Pospíšil's avatar Tomáš Pospíšil
Browse files

fix urls with encoded chars

parent 0d88c14c
......@@ -30,7 +30,7 @@ final class WebSwitcherUrls
$host = parse_url($current, PHP_URL_HOST);
$normalized = Strings::replace($current, '/' . preg_quote($host, '/') . '/', '%s', 1);
$normalized = Strings::replace(urldecode($current), '/' . preg_quote($host, '/') . '/', '%s', 1);
$this->local = sprintf($normalized, $local);
$this->testing = sprintf($normalized, $testing);
......
Supports Markdown
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