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 /database | |
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 'database')
-rw-r--r-- | database/updates.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc index c4812c45a..07774956a 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1659,3 +1659,12 @@ function system_update_174() { } return array(); } + +function system_update_175() { + $result = db_query('SELECT * FROM {url_alias}'); + while ($path = db_fetch_object($result)) { + $path->src = urldecode($path->src); + $path->dst = urldecode($path->dst); + db_query("UPDATE {url_alias} SET dst = '%s', src = '%s' WHERE pid = %d", $path->dst, $path->src, $path->pid); + } +} |