Page 1 of 1

URL gets messed up

Posted: Fri Dec 28, 2012 4:15 pm
by robertmc1
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
URL, link and several others that were rejected. Then I went through all the pages looking for something similar.
Write your message below:

Sometimes when I am entering a reply, I have to demonstrate the syntax of a command such as:
copy sftp://user:password@ipaddress/file.
The automatic "turning URLs into a link" messes up the syntax, deleting what is after the second colon and replacing it with http.

Does anyone know where in the code I can turn off this automatic "turn URLs into links"?

Re: URL gets messed up

Posted: Sat Dec 29, 2012 12:39 pm
by Klemen
In inc/common.inc.php find

Code: Select all

$rexProtocol  = '(https?://)?';
and just above that add

Code: Select all

return $text;
I am aware of that problem though and will have a fix ready for 2.5

Re: URL gets messed up

Posted: Mon Dec 31, 2012 2:33 pm
by robertmc1
Thank you Klemen. You're the best.

(Sorry about the "Is this possible" question. After breaking our ticketing system with the fixes I attempted, I thought it best to ask for your help.)