Bug report concerning the signature file

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Rob Whisonant
Posts: 4
Joined: Mon Mar 03, 2008 8:27 am

Bug report concerning the signature file

Post by Rob Whisonant »

Just a quick bug report.

If you include a ' in a signature file it is not escaped and throws an SQL insert error.

Re's
Rob
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Hesk should automatically add slashes to all input data

Code: Select all

    if (!ini_get('magic_quotes_gpc'))
    {
        if (!is_array($in))
            $in = addslashes($in);
        else
            $in = hesk_slashArray($in);
    }
Will have a look though and see if I can find the problem. Could you by any chance upload phpinfo file on your server and post the link here so I can check your server config?
http://www.phpjunkyard.com/extras/phpinfo.zip
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
Rob Whisonant
Posts: 4
Joined: Mon Mar 03, 2008 8:27 am

Post by Rob Whisonant »

The problem only happens when you reply to an open ticket. If you un tick add signature file it does not happen and of course the signature is not added.

If you take the ' out of the signature file all works fine.

Re's
Rob
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Rob,

I can't seem to be able to generate this error on my server, would you please upload phpinfo file to your server so I can see how PHP is configured there:
http://www.phpjunkyard.com/extras/phpinfo.zip

You can either post results here or send them to me in a private message.

Tanks!
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
Rob Whisonant
Posts: 4
Joined: Mon Mar 03, 2008 8:27 am

Post by Rob Whisonant »

Klemen wrote:Rob,

I can't seem to be able to generate this error on my server, would you please upload phpinfo file to your server so I can see how PHP is configured there:
http://www.phpjunkyard.com/extras/phpinfo.zip

You can either post results here or send them to me in a private message.

Tanks!
PM sent.

Re's
Rob
Rob Whisonant
Posts: 4
Joined: Mon Mar 03, 2008 8:27 am

Post by Rob Whisonant »

More info.

It seems to only be a problem when you first create a signature file.

If you edit it and add a ', it does change it to \'

Then it works fine.

Re's
Rob
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Thanks for the info, you can delete the phpinfo file now. I will have a look today or tomorrow.
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: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Ok, try if this works for you:
http://www.phpjunkyard.com/extras/hesk_slash.zip

Whatever comes out I strongly recommend that you contact your host and demand that they upgrade their PHP, they have a very old version which is both insecure and could also be the reason for the problems you are having.
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