Problem with XML export content
Posted: Mon Sep 01, 2014 12:56 pm
Script URL: -- internal server --
Version of script: 2.5.5
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: export XML
Write your message below:
Hi,
We encountered problems with the new export to XML.
The problem is the following : some users put messages with informations like :
Fichier z:\isacowt.gi\COT7C20.tmp\06438-BAL.ECR
All XML parsers convert \0 to the NULL character and generate an error.
The solution I've found is to modify the two following lines in export.php :
539 : $ticket['message'] = hesk_msgToPlain($ticket['message'], 1, 0);
540 : $ticket['subject'] = hesk_msgToPlain($ticket['subject'], 1, 0);
By adding the last parameter in the call to hesk_msgToPlain, we keep the slashes and all is right.
Hope this helps.
Regards
Version of script: 2.5.5
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: export XML
Write your message below:
Hi,
We encountered problems with the new export to XML.
The problem is the following : some users put messages with informations like :
Fichier z:\isacowt.gi\COT7C20.tmp\06438-BAL.ECR
All XML parsers convert \0 to the NULL character and generate an error.
The solution I've found is to modify the two following lines in export.php :
539 : $ticket['message'] = hesk_msgToPlain($ticket['message'], 1, 0);
540 : $ticket['subject'] = hesk_msgToPlain($ticket['subject'], 1, 0);
By adding the last parameter in the call to hesk_msgToPlain, we keep the slashes and all is right.
Hope this helps.
Regards
