Skip to content
Snippets Groups Projects
Commit 3bf00247 authored by Marius Cramer's avatar Marius Cramer
Browse files

Merge branch 'master' of /home/git/repositories/florian030/ispconfig3

parents e5685e73 7ed87c51
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ public function toLower($record) {
return;
}
/* Get database-size from information_schema */
$result=mysql_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".$database_name."';",$link);
$result=mysql_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysql_real_escape_string($database_name)."';",$link);
$this->close;
if (!$result) {
$app->log('Unable to get the database-size'.mysql_error($link),LOGLEVEL_DEBUG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment