Florian Schaal
2013-10-21 7ed87c51103a7e988b0f0a2265805b698cf7e5b1
fixed security issue
1 files modified
2 ■■■ changed files
server/lib/classes/db_mysql.inc.php 2 ●●● patch | view | raw | blame | history
server/lib/classes/db_mysql.inc.php
@@ -280,7 +280,7 @@
                        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);