Page 1 of 1

Problem with canned responses & URL's

Posted: Thu Dec 11, 2008 10:51 pm
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 :)

Posted: Fri Dec 12, 2008 5:49 pm
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

Posted: Fri Dec 12, 2008 6:53 pm
by Sammy95
Thank You !

Worked...

Sammy :-)