Page 1 of 1

FTP link

Posted: Tue Sep 18, 2012 11:58 am
by steraffi
Version of script: 2.4.1

What terms did you try when SEARCHING for a solution: ftp/link


Hi; this is my problem:
I configured my hesk to send in the "new_email_by_staf mail" notification a copy of the message wrote (using special tag %%message%%)
This because i need to send to customers some ftp links, for example ftp://ftp.myftp.net/tmp/file.zip.

Well; when the system creates the customer's notification email, automatically changes the original ink in: ftp://http://ftp.myftp.net/tmp/file.zip
Naturally the link results wrong.
It seems that the system doesn't recognize the "ftp://" as a valid protocol.
How can i solve this issue?
Thank's for any answer

Re: FTP link

Posted: Tue Sep 18, 2012 6:04 pm
by Klemen
Try this:

1. open inc/common.inc.php in a HTML editor
2. find

Code: Select all

$rexProtocol  = '(ftp://|https?://)?';
3. change to

Code: Select all

$rexProtocol  = '(https?://)?';
4. save, upload and test.

Does this help?

[solved]Re: FTP link

Posted: Tue Sep 18, 2012 8:16 pm
by steraffi
pheraps you are inverted the order of command; anywher using
$rexProtocol = '(ftp://|https?://)?';

The system work fine and now the link is correct

Thanks' a lot

Re: FTP link

Posted: Mon Apr 01, 2013 9:06 am
by deserteagle369
I have similar problem. I use hesk in intranet so the url like below:
http://chnshaxxxx/hesk/knowledgebase.php?article=4594

The function hesk_makeURL($text) should convert web addresses in the text into HTML hyperlinks but it did not.

I think the problem is my domain start as chnshaxxxx which be ignored by the function.

anybody has idea how to fix it?

Re: FTP link

Posted: Mon Apr 01, 2013 9:20 am
by Klemen
Try with the updated function I posted here and see if that works for you:
viewtopic.php?f=13&t=4423

Re: FTP link

Posted: Tue Apr 02, 2013 8:05 am
by deserteagle369
can't, it only fix the bug which lost the parameter part of url text,

before
http://chnshaxxxx/hesk/knowledgebase.php

after:
http://chnshaxxxx/hesk/knowledgebase.php?article=4594

but it still can't handle the computer as a domain.