1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

PostgreSQL: Unescape bytea fields

This commit is contained in:
Jakub Vrana
2018-02-06 16:05:39 +01:00
parent 29c127e94a
commit 19653de764
5 changed files with 25 additions and 3 deletions

View File

@@ -6,5 +6,5 @@ header("Content-Disposition: attachment; filename=" . friendly_url("$TABLE-" . i
$select = array(idf_escape($_GET["field"]));
$result = $driver->select($TABLE, $select, array(where($_GET, $fields)), $select);
$row = ($result ? $result->fetch_row() : array());
echo $row[0];
echo $driver->value($row[0], $fields[$_GET["field"]]);
exit; // don't output footer