Problem with canned responses & URL's

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Sammy95
Posts: 6
Joined: Thu Dec 04, 2008 6:52 pm

Problem with canned responses & URL's

Post by Sammy95 »

Version of script: 0.94.1

Hello again..

I am trying to insert a canned message that contains a PayPal link,
but the result is always that script saves the link differently than what I insert.

Here's the link:

Code: Select all

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=me@mydomain.com&lc=DE&item_name=Services&amount=10&currency_code=EUR&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted
Well. The link contains the word &currency_code and this is changed to ¤cy_code every time I save it.

I can enter the link directly myselves into the message and it works fine, but I want to use it from canned because it will automaticly use values from the %%HESK_customX%% fields..

So... Where is the part of the script that eats my letters..?

(Or, even better - is there a way that I could insert a whole <form> from the pre canned messages?)

Sammy :)
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try adding something like

Code: Select all

$mysaved[2] = str_replace('&','&',$mysaved[2]); 
just above

Code: Select all

echo 'myMsgTxt['.$mysaved[0].']=\''.str_replace("\r\n","\\r\\n' + \r\n'", strtr(addslashes($mysaved[2]), $trans))."';\n";
in admin_ticket.php
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
Sammy95
Posts: 6
Joined: Thu Dec 04, 2008 6:52 pm

Post by Sammy95 »

Thank You !

Worked...

Sammy :-)
Post Reply