issue: parsing url in admin ticket

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
sean
Posts: 2
Joined: Tue Aug 14, 2012 4:22 am

issue: parsing url in admin ticket

Post by sean »

Script URL: https://top-choice.com.au/helpdesk/
Version of script: 2.4
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: link, url, parse, admin, ticket

Write your message below:
hi, not the end of the world, just small issue

when I (admin) reply a ticket at the admin, occasionally I need to give url to customer. the url I entered is something like this:
"http://top-choice.com.au/store/index.ph ... cts_id=217"

however, the text of clickable link turned out to be only "top-choice.com.au/store/index.php" everything behind the "?" seems to be ignored. Although the clickable link is still linking to correct url "http://top-choice.com.au/store/index.ph ... cts_id=217"

Please kindly look at below image and you will know what I mean:
Image

Any idea how to fix it?

btw, this software is awesome!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: issue: parsing url in admin ticket

Post by Klemen »

That's actually on purpose. If you wish to display the full URL instead try this:

1. open "inc/common.inc.php" in Notepad
2. change

Code: Select all

htmlspecialchars($linkText)
to

Code: Select all

$completeUrl
3. save, upload and test on a new ticket.
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
sean
Posts: 2
Joined: Tue Aug 14, 2012 4:22 am

Re: issue: parsing url in admin ticket

Post by sean »

Thank you!! That helped.

htmlspecialchars($completeUrl) will turn & into & (if URL contains "&" )
I tried putting just "$completeUrl" and it still worked. Would without the htmlspecialchars() do any harm?

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

Re: issue: parsing url in admin ticket

Post by Klemen »

You're right, it's not needed here because the message already passes htmlspecialchars before being passed to this function.

I've modified the above code so anyone else trying this doesn't add it.
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
Post Reply