tbrehm
2011-03-08 d0ecf554afc5919c1e10827992bf49e6f15c5402
Fixed: FS#1527 - Partially modified user in MySQL
1 files modified
2 ■■■ changed files
server/plugins-available/mysql_clientdb_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/mysql_clientdb_plugin.inc.php
@@ -222,7 +222,7 @@
                $db_host = 'localhost';
                mysql_query("RENAME USER '".mysql_real_escape_string($data['old']['database_user'],$link)."'@'$db_host' TO '".mysql_real_escape_string($data['new']['database_user'],$link)."'@'$db_host'",$link);
                if($data['old']['remote_access'] == 'y') {
          $this->process_host_list('RENAME', '', $data['new']['database_user'], '', $data['new']['remote_ips'], $link, $data['new']['database_user']);
                    $this->process_host_list('RENAME', '', $data['old']['database_user'], '', $data['new']['remote_ips'], $link, $data['new']['database_user']);
                }
                $app->log('Renaming MySQL user: '.$data['old']['database_user'].' to '.$data['new']['database_user'],LOGLEVEL_DEBUG);
            }