From 47cf9dd9fbb930ad2238ae131ae0fef60ce27a74 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Mar 2006 08:46:09 +0000 Subject: - Patch #46746 by Matt: fixed inconsistent encoding of path aliases. Fixes broken URLs on profile pages. --- modules/path/path.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index cce40f470..d93ca5cef 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -144,7 +144,9 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL) { drupal_clear_path_cache(); } else if ($path && $alias) { + $path = urldecode($path); $path_count = db_result(db_query("SELECT COUNT(src) FROM {url_alias} WHERE src = '%s'", $path)); + $alias = urldecode($alias); $alias_count = db_result(db_query("SELECT COUNT(dst) FROM {url_alias} WHERE dst = '%s'", $alias)); // We have an insert: -- cgit v1.2.3