From ddea0d35c5970ff2b7d3625822c74bf9c714bc99 Mon Sep 17 00:00:00 2001 From: Marius Hanl Date: Mon, 31 Oct 2022 16:32:09 +0100 Subject: [PATCH] Fix htmlentities() is called on already converted data on import The data exported by the teleporter is already converted by the htmlentities() method before. Therefore, we do not need to call it again during import, otherwise some characters will be displayed incorrectly Signed-off-by: Marius Hanl --- scripts/pi-hole/php/teleporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/teleporter.php b/scripts/pi-hole/php/teleporter.php index 0161a9ad7..b5430f5a3 100644 --- a/scripts/pi-hole/php/teleporter.php +++ b/scripts/pi-hole/php/teleporter.php @@ -193,7 +193,7 @@ function archive_restore_table($file, $table, $flush = false) default: $sqltype = 'UNK'; } - $stmt->bindValue(':'.$key, htmlentities($value), $sqltype); + $stmt->bindValue(':'.$key, $value, $sqltype); } if ($stmt->execute() && $stmt->reset() && $stmt->clear()) {