--- path_redirect.module	2008-04-15 21:49:36.000000000 -0500
+++ path_redirect.module	2008-04-16 15:59:12.273640800 -0500
@@ -283,7 +283,7 @@ function path_redirect_edit_form($edit =
 function path_redirect_edit_validate($form_id, &$form_values, $form) {
   // Allow spaces in "from" path; encode everything but the query string
   $form_values['path'] = urlencode(preg_replace('/\?.*/', '', $form_values['path']))
-    . preg_replace('/.*(\?)/', '$1', $form_values['path']);
+    . strstr($form_values['path'], '?') ? preg_replace('/.*(\?)/', '$1', $form_values['path']) : '';
   form_set_value($form['path'], $form_values['path']);
 
   if (trim($form_values['path']) == '') {
