Skip to content

Commit 3bf0024

Browse files
author
Marius Cramer
committed
Merge branch 'master' of /home/git/repositories/florian030/ispconfig3
2 parents e5685e7 + 7ed87c5 commit 3bf0024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function getDatabaseSize($database_name) {
280280
return;
281281
}
282282
/* Get database-size from information_schema */
283-
$result=mysql_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".$database_name."';",$link);
283+
$result=mysql_query("SELECT SUM(data_length+index_length) FROM information_schema.TABLES WHERE table_schema='".mysql_real_escape_string($database_name)."';",$link);
284284
$this->close;
285285
if (!$result) {
286286
$app->log('Unable to get the database-size'.mysql_error($link),LOGLEVEL_DEBUG);

0 commit comments

Comments
 (0)