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
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.

AttachmentSize
customerror.module.patch531 bytes

#1

kbahey - March 16, 2009 - 18:39
Version:6.x-1.0» 6.x-1.x-dev
Status:active» fixed

Thank you. Committed.

It should be in the -dev version tonight.

#2

System Message - March 30, 2009 - 18:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.