Skip to content
Snippets Groups Projects
Commit 7ed87c51 authored by Florian Schaal's avatar Florian Schaal
Browse files

fixed security issue

parent e5685e73
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