Quote MS SQL database name (bug #3576248)

This commit is contained in:
Jakub Vrana 2012-12-01 15:11:01 -08:00
parent ee8ffa575f
commit d5d8a6c8bc

View file

@ -38,7 +38,7 @@ if (isset($_GET["mssql"])) {
}
function select_db($database) {
return $this->query("USE $database");
return $this->query("USE " . idf_escape($database));
}
function query($query, $unbuffered = false) {