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

Commit 3e04559f authored by Jonas Haraldsson's avatar Jonas Haraldsson

rawurlencode to urlencode

parent 9160d1ba
......@@ -27,7 +27,7 @@
* @return string A mod_rewrite compatible encoding of the given text.
*/
function rewrite_encode($url) {
$url = rawurlencode($url);
$url = urlencode($url);
$url = preg_replace('/%2B/', '%252B', $url); // +
$url = preg_replace('/%2F/', '%252F', $url); // /
$url = preg_replace('/%26/', '%2526', $url); // &
......
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