Closed (fixed)
Project:
Documentation
Component:
Documentation in CVS
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2008 at 00:51 UTC
Updated:
3 Jul 2008 at 11:33 UTC
The documentation at http://api.drupal.org/api/function/drupal_urlencode/5 lists the code sample for drupal_urlencode and shows a call to rawurlencode. The current downloadable codebase actually uses urlencode instead.
I am not sure if the issue is the documentation being out of sync, or the issue is actually in the codebase. Not using the rawurlencode function has resulted in broken paths containing spaces on my site, so perhaps this should be a bug report against drupal core?
Comments
Comment #1
gollyg commentedHave also posted at http://drupal.org/node/271780
Comment #2
gpk commentedThe problem you have outlined was fixed on May 26 - http://drupal.org/node/191116. So the fix is not in 5.7. It *will* be in any 5.8 release (unless reverted between now and then :-P ), or just use 5.x-dev if you want it now.
Comment #3
gpk commentedSo the API docs are actually correct (in that they match 5.x-dev, which is what they are supposed to do).
To see the 5.7 version you have to browse CVS (or look at your own downloaded copy!):
http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/common.inc?view=l...
http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/common.inc?annota...
Comment #4
gollyg commentedNo worries. Thanks for the response.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.