diff options
Diffstat (limited to 'database/updates.inc')
-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); + } +} |