function __construct() {
parent::__construct(":memory:");
+ $this->query("PRAGMA foreign_keys = 1");
}
function select_db($filename) {
if (is_readable($filename) && $this->query("ATTACH " . $this->quote(preg_match("~(^[/\\\\]|:)~", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3
parent::__construct($filename);
+ $this->query("PRAGMA foreign_keys = 1");
return true;
}
return false;
Adminer 4.4.1-dev:
Adminer: Fix Search data in tables (regression from 4.4.0)
CSP: Allow any images, media and fonts, disallow base-uri
+SQLite: Enable foreign key checks
Adminer 4.4.0 (released 2018-01-17):
Add Content Security Policy