Skip to content
Snippets Groups Projects
Commit 0dcc9317 authored by Jared Hancock's avatar Jared Hancock
Browse files

pdf: Fix invalid UTF-8 characters error message

parent 9d5aa524
Branches
Tags
No related merge requests found
...@@ -31136,6 +31136,7 @@ function purify_utf8($html,$lo=true) { ...@@ -31136,6 +31136,7 @@ function purify_utf8($html,$lo=true) {
function purify_utf8_text($txt) { function purify_utf8_text($txt) {
// For TEXT // For TEXT
// Make sure UTF-8 string of characters // 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)"); } if (!$this->is_utf8($txt)) { $this->Error("Text contains invalid UTF-8 character(s)"); }
$txt = preg_replace("/\r/", "", $txt ); $txt = preg_replace("/\r/", "", $txt );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment