You are here

function system_update_175 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_175()

File

database/updates.inc, line 1698

Code

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);
  }
  return array();
}