URL gets messed up

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
robertmc1
Posts: 2
Joined: Fri Dec 28, 2012 4:07 pm

URL gets messed up

Post 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"?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: URL gets messed up

Post 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
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
robertmc1
Posts: 2
Joined: Fri Dec 28, 2012 4:07 pm

Re: URL gets messed up

Post 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.)
Post Reply