Skip to content
Snippets Groups Projects
Commit c89d5cc9 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1512 from greezybacon/issue/pdf-invalid-utf


pdf: Fix invalid UTF-8 characters error message

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 9d5aa524 0dcc9317
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment