1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 15:16:44 +02:00
Jakub Vrana
2012-05-13 23:20:47 -07:00
parent 17ef1f0dfc
commit 20cf6d29c5
2 changed files with 5 additions and 1 deletions

View File

@@ -30,7 +30,10 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
}
function quote($string) {
return "'" . $this->_link->escapeString($string) . "'";
return (is_utf8($string)
? "'" . $this->_link->escapeString($string) . "'"
: "x'" . reset(unpack('H*', $string)) . "'"
);
}
function store_result() {