Page 1 of 1

mailto issue in ticket responses

Posted: Thu Jun 18, 2015 1:57 pm
by seth
Script URL: http://www.hebrewbible.co.il/support/
Version of script: 2.5.2
Hosting company: BlueHost
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Hesk mailto

Write your message below:

I have an occasional problem where we submit a ticket response with a URL with an email address in it. It converts the email address into a mailto link and embeds that in the URL, which is quite a mess. How can I disable the creation of the mailto link part so that we will have a decent clickable URL?

It is a bit hard to find information on this when Googling due to the common search terms I used.

Here is an example:

We submit:

Please go here: http://www.site.com/signup.asp?payer_em ... @gmail.com

The ticket winds up looking like this:

Please go here: <a href="http://www.<a href="mailto:site.com/signup.asp?payer_email=user@gmail.com">site.com/signup.asp?payer_email=user@gmail.com</a>">http://www.<a href="mailto:site.com/signup.asp?payer_email=user@gmail.com">site.com/signup.asp?payer_email=user@gmail.com</a></a>

TIA!

Re: mailto issue in ticket responses

Posted: Thu Jun 18, 2015 5:27 pm
by Klemen
You have two options:

1. correctly encode emails in URL addresses - replace "@" with "%40", for example:
http://www.site.com/signup.asp?test%40gmail.com



- OR -


2. you can open file inc/common.inc.php and delete 9 lines of code, from

Code: Select all

// matches an email address
to

Code: Select all

);

Re: mailto issue in ticket responses

Posted: Fri Jun 19, 2015 8:04 am
by seth
Thank you for your help!!