You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/lib/classes/db_mysql.inc.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ public function getDatabaseSize($database_name) {
280
280
return;
281
281
}
282
282
/* 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);
284
284
$this->close;
285
285
if (!$result) {
286
286
$app->log('Unable to get the database-size'.mysql_error($link),LOGLEVEL_DEBUG);
0 commit comments