Problem with XML export content

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
turbo80
Posts: 6
Joined: Mon Sep 01, 2014 12:44 pm

Problem with XML export content

Post by turbo80 »

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 :wink:
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with XML export content

Post by Klemen »

Thanks for sharing this!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
turbo80
Posts: 6
Joined: Mon Sep 01, 2014 12:44 pm

Re: Problem with XML export content

Post by turbo80 »

Hi Klemen,

I hoped these minor changes would be kept in future releases but that's not the case in release 2.6.x. :(

Regards,
Philippe
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with XML export content

Post by Klemen »

Hi Philippe,

Honestly - I didn't write it down so completely forgot about it.

I made the change now on my development branch so it will be included in the next minor update.

Thanks for reminding me.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Problem with XML export content

Post by Klemen »

This fix has been included in the 2.6.2 update: viewtopic.php?f=13&t=5234
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply