From eb0e12027eecd83c7f573b19cd7b4204ffa208ce Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Fri, 04 Nov 2011 09:52:57 -0400
Subject: [PATCH] Special Char issues with logs.  I really think I have submitted this one fix several times.

---
 server/plugins-available/mysql_clientdb_plugin.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/plugins-available/mysql_clientdb_plugin.inc.php b/server/plugins-available/mysql_clientdb_plugin.inc.php
index baed17c..65c87d7 100644
--- a/server/plugins-available/mysql_clientdb_plugin.inc.php
+++ b/server/plugins-available/mysql_clientdb_plugin.inc.php
@@ -75,7 +75,7 @@
       if(trim($host_list) == '') $host_list = '%';
       
       // process arrays and comma separated strings
-      if(!is_array($host_list)) $host_list = split(',', $host_list);
+      if(!is_array($host_list)) $host_list = explode(',', $host_list);
       
       $success = true;
       
@@ -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);
 			}

--
Gitblit v1.9.1