### Eclipse Workspace Patch 1.0
#P drupal-contrib-5
Index: modules/path_redirect/path_redirect.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/path_redirect/path_redirect.module,v
retrieving revision 1.3.2.6
diff -u -r1.3.2.6 path_redirect.module
--- modules/path_redirect/path_redirect.module	2 May 2007 01:33:42 -0000	1.3.2.6
+++ modules/path_redirect/path_redirect.module	5 Oct 2007 13:49:15 -0000
@@ -25,8 +25,9 @@
 function path_redirect_init() {
   // check through the redirects
   // see if this page is one of those
-  $path = db_escape_string($_GET['q']);
-  $r = db_fetch_object(db_query('SELECT redirect, query, fragment, type FROM {path_redirect} WHERE path = "%s"', $path));
+  $path1 = $_GET['q'];
+  $path2 = utf8_encode($_GET['q']);
+  $r = db_fetch_object(db_query("SELECT redirect, query, fragment, type FROM {path_redirect} WHERE path = '%s' OR path = '%s'", $path1, $path2));
   if ($r) {
     drupal_goto($r->redirect, ($r->query ? $r->query: NULL), ($r->fragment ? $r->fragment : NULL), $r->type);
   }
