Commit f68f5254 authored by Dries's avatar Dries

- Patch #191116 by david: make drupal_urlencode() rfc 1738 compliant to make...

- Patch #191116 by david: make drupal_urlencode() rfc 1738 compliant to make it work correctly with spaces.
parent 75ea35a6
......@@ -2272,10 +2272,10 @@ function drupal_urlencode($text) {
if (variable_get('clean_url', '0')) {
return str_replace(array('%2F', '%26', '%23', '//'),
array('/', '%2526', '%2523', '/%252F'),
urlencode($text));
rawurlencode($text));
}
else {
return str_replace('%2F', '/', urlencode($text));
return str_replace('%2F', '/', rawurlencode($text));
}
}
......
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