FTP link

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
steraffi
Posts: 30
Joined: Tue Sep 18, 2012 10:50 am

FTP link

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

Re: FTP link

Post 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?
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
steraffi
Posts: 30
Joined: Tue Sep 18, 2012 10:50 am

[solved]Re: FTP link

Post 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
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: FTP link

Post 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?
Eagle
Life is a journey.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: FTP link

Post by Klemen »

Try with the updated function I posted here and see if that works for you:
viewtopic.php?f=13&t=4423
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
deserteagle369
Posts: 94
Joined: Wed Feb 29, 2012 2:00 am

Re: FTP link

Post 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.
Eagle
Life is a journey.
Post Reply