--- customerror.module 2008-10-05 18:03:09.000000000 -0700 +++ customerror.module.new 2009-03-16 11:02:17.000000000 -0700 @@ -218,7 +218,8 @@ if (isset($src) && isset($dst)) { $src = str_replace("/", "\\/", $src); $dst = str_replace("\r", "", $dst); - if (preg_match('/'. $src .'/', $destination)) { + $orig_dst = str_replace(" ", "%20", $destination); + if (preg_match('/'. $src .'/', $orig_dst)) { $_REQUEST['destination'] = $dst; drupal_goto($dst); }