From 0dcc931762833aa787f4c7a2e5f4d40c93502a52 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 20 Nov 2014 12:17:42 -0600 Subject: [PATCH] pdf: Fix invalid UTF-8 characters error message --- include/mpdf/mpdf.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mpdf/mpdf.php b/include/mpdf/mpdf.php index af04fa3b4..9c7fe98ad 100755 --- a/include/mpdf/mpdf.php +++ b/include/mpdf/mpdf.php @@ -31136,6 +31136,7 @@ function purify_utf8($html,$lo=true) { function purify_utf8_text($txt) { // For TEXT // Make sure UTF-8 string of characters + if ($txt === null) $txt = ''; if (!$this->is_utf8($txt)) { $this->Error("Text contains invalid UTF-8 character(s)"); } $txt = preg_replace("/\r/", "", $txt ); -- GitLab