KB article suggstion breaks with more than 255 characters

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
shifuimam
Posts: 2
Joined: Wed Mar 18, 2009 2:06 am

KB article suggstion breaks with more than 255 characters

Post by shifuimam »

The KB feature that suggests articles relating to a submitted ticket is using GET rather than POST, which is causing a ticket submission to break if the content of the ticket contains more than 255 characters.

Disabling the KB allows submitting a ticket of any length.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The variable length limit is a server-side limit and Hesk by default caps the variable at about 1900 chars length which works on most servers and is within the limits of modern browser max query string.

Try opening the hesk_javascript.js file in Notepad and changing Code:
m.substr(0,1900)
to:
m.substr(0,250)

That should limit the variable to max 250 chars. Save changes, upload to the server, clear browser cache, close all browser windows then see if you can reproduce the error.

But yes, I am aware of the problems and limitations (was posted here too before). The next version should have the knowledgebase suggest solved with either a post to the next page or an ajax solution.
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