Marius Burkard
2016-02-18 6f97fc13f9ad7476dc532386777e3710c45fe361
server/plugins-available/mysql_clientdb_plugin.inc.php
@@ -92,6 +92,9 @@
                  $result->free();
            }
      }
      $app->log("Calling $action for $database_name with access $user_access_mode and hosts " . implode(', ', $host_list), LOGLEVEL_DEBUG);
      // loop through hostlist
      foreach($host_list as $db_host) {
         $db_host = trim($db_host);
@@ -112,7 +115,10 @@
            $valid = false;
         }
         if($valid == false) continue;
         if($valid == false) {
            $app->log("Invalid host " . $db_host . " for GRANT to " . $database_name, LOGLEVEL_DEBUG);
            continue;
         }
         
         $grants = 'ALL';
         if($user_access_mode == 'r') $grants = 'SELECT';