Page Not Found on redirects containing spaces
elally - March 16, 2009 - 18:27
| Project: | CustomError |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I'm running into an issue where redirects aren't successful if the URL for the original destination page contains spaces (either raw spaces or encoded as a %20 entity). The problem appears to be that Drupal rewrites the destination URL before CustomError gets it, and any %20 entities are converted to raw spaces. Since CustomError uses the space character as a delimiter, I can't embed spaces in the URL mapping list and so the mapping never matches.
I've created a patch to take the original destination URL and replace spaces with %20 before checking for a match.
| Attachment | Size |
|---|---|
| customerror.module.patch | 531 bytes |

#1
Thank you. Committed.
It should be in the -dev version tonight.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.