]> git.joonet.de Git - adminer.git/commitdiff
mb_ereg compatibility
authorJakub Vrana <jakubv@fb.com>
Mon, 9 Jan 2012 19:46:43 +0000 (11:46 -0800)
committerJakub Vrana <jakubv@fb.com>
Mon, 9 Jan 2012 19:46:43 +0000 (11:46 -0800)
adminer/drivers/sqlite.inc.php

index 39c84e0f58cc31b423975b8c488e1e023b567a50..c1b6bf688e95bc28c7ed3d6f66c585781ad80aba 100644 (file)
@@ -181,7 +181,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
                        }
                        
                        function select_db($filename) {
-                               if (is_readable($filename) && $this->query("ATTACH " . $this->quote(ereg("(^[/\\]|:)", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3
+                               if (is_readable($filename) && $this->query("ATTACH " . $this->quote(ereg("(^[/\\\\]|:)", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3
                                        $this->Min_SQLite($filename);
                                        return true;
                                }