Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Fetched emails display code in the thread

Hi Guys,

I am running version 1.9.15 (upgraded from 1.9.14)  I have fetched email coming from gmail.
When the email comes in the ticket imports the code and not the message (see below).
"xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">"

Any idea's how to stop this from happening.
Tagged:

Comments

  • All working after I changed the class.format.php file.

        function safe_html($html, $options=array()) {

            // Remove HEAD and STYLE sections
            $html = preg_replace(
                array(':<(head|style|script).+?</\1>:is', # <head> and <style> sections
                      ':<!\[[^]<]+\]>:',            # <![if !mso]> and friends
                      ':<!DOCTYPE[^>]+>:',          # <!DOCTYPE ... >
                      ':<\?[^>]+>:',                # <?xml version="1.0" ... >
                      ':<html[^>]*:i',              # Clean html tag (Issue 2272 fix)
                ),
                array('', '', '', '', '<html'),
                $html);
Sign In or Register to comment.