diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-11-13 12:35:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-11-13 12:35:19 +0000 |
commit | f68f52540107a625f326448f413bc323e2138f31 (patch) | |
tree | d4894e3144db78abecb171c32d5dc3c0c795898a /includes | |
parent | 75ea35a645c52b0fcde289cedc8d22d6afddb94b (diff) | |
download | brdo-f68f52540107a625f326448f413bc323e2138f31.tar.gz brdo-f68f52540107a625f326448f413bc323e2138f31.tar.bz2 |
- Patch #191116 by david: make drupal_urlencode() rfc 1738 compliant to make it work correctly with spaces.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index c9f577c1b..919ca2f2d 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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)); } } |