diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-03-03 08:46:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-03-03 08:46:09 +0000 |
commit | 47cf9dd9fbb930ad2238ae131ae0fef60ce27a74 (patch) | |
tree | 648a694fdc92ce2dd15bc2d57bb907e65c7d83d0 /modules/path/path.module | |
parent | d7e9371e94be34b90c72bd51d56fc239237318d5 (diff) | |
download | brdo-47cf9dd9fbb930ad2238ae131ae0fef60ce27a74.tar.gz brdo-47cf9dd9fbb930ad2238ae131ae0fef60ce27a74.tar.bz2 |
- Patch #46746 by Matt: fixed inconsistent encoding of path aliases. Fixes broken URLs on profile pages.
Diffstat (limited to 'modules/path/path.module')
-rw-r--r-- | modules/path/path.module | 2 |
1 files changed, 2 insertions, 0 deletions
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: |