summaryrefslogtreecommitdiff
path: root/includes/general.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/general.php')
-rw-r--r--includes/general.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index fe5c14d..e2070ff 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -566,7 +566,8 @@
$after = substr($data, $pos + 4);
$data = $before.$char.$after;
}
- return charset_decode_utf8($data);
+
+ return htmlentities(charset_decode_utf8($data), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', false);
}
function signmail($to, $subject, $message, $from, $replyto = "")