Visit the /project page and any project type with a space in it has an unencoded space in the URL.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 375349-4.project_plus_not_urlencode.patch | 685 bytes | dww |
Visit the /project page and any project type with a space in it has an unencoded space in the URL.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 375349-4.project_plus_not_urlencode.patch | 685 bytes | dww |
Comments
Comment #1
webernet commentedComment #2
dwwComment #3
dwwHrm, I'm confused.
A) The spaces are all urlencoded when I look on d6.d.o. e.g. http://d6.drupal.org/project/installation%20profiles
B) Nothing at all changed in the project code for this between D5 and D6. AFAICT, the change must be due to something deep inside url() that changed in core.
tempted to mark this "by design", but I'd like to get more info first...
Comment #4
dwwAfter further inspection, the URLs are properly encoded. The confusing thing is that FF3 apparently decodes and renders the link with the raw space (both in the status bar on hover, and in the main URL area when you click on it).
Anyway, due to (B), the only way I can think of to avoid this behavior is to just munge the link we get back from l() to replace %20 with +. Seems like a hack, but it'll maintain the existing behavior...
Comment #5
dwwCommitted to HEAD.