Custom field is being converted to a hyperlink

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
kuffs
Posts: 2
Joined: Tue Sep 04, 2012 6:45 am

Custom field is being converted to a hyperlink

Post by kuffs »

Hesk: 2.4.1

I have a number of custom fields. One of them is being converted to a hyperlink when it should not be.

The field requests a version number. Entering "3.1.3.6" displays on the ticket as "http://3.1.3.6" (hyperlinked)

It is a standard text field. I have other fields requesting data in the same format but they work correctly. Only the first custom field is being formatted incorrectly.

Enable: Yes
Type: Text Field
Required: Yes
Field Name: Windows app version
Location: Before Message


Any ideas on how to fix?

Thanks.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Custom field is being converted to a hyperlink

Post by Klemen »

The URL parser thinks 3.1.3.6 is an IP address hence it's converted into a hyperlink.

To fix this open "submit_ticket.php" in a HTML editor and delete first two lines containing

Code: Select all

hesk_makeURL
Delete just the first two lines containing this code, the last (third) occurrence of hesk_makeURL should be left intact.
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
kuffs
Posts: 2
Joined: Tue Sep 04, 2012 6:45 am

Re: Custom field is being converted to a hyperlink

Post by kuffs »

Deleting the lines made it complain that the fields were empty (when they were not).

Luckily i only commented out the lines. I fixed it by removing the "hesk_makeURL" from the lines you specified.
Post Reply