drupal_urlencode chokes on spaces in paths

gollyg - June 18, 2008 - 00:57
Project:Drupal
Version:5.7
Component:base system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I am not sure that this is actually an issue, but I have found that the function drupal_urlencode() replaces spaces with + signs rather than %20.

This seems to be caused by the use of urlencode() rather than rawurlencode(). Oddly, the documentation is out of sync with the code, as the documentation incorrectly indicates that the function uses rawurlencode().

Have also posted as a documentation bug at http://drupal.org/node/271779, as I didnt now which bit was wrong.

#1

gpk - June 18, 2008 - 15:07
Status:active» duplicate

http://drupal.org/node/191116.

 
 

Drupal is a registered trademark of Dries Buytaert.