HESK slash issue on KB edit page

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
stpha6
Posts: 2
Joined: Tue Oct 04, 2011 10:45 pm

HESK slash issue on KB edit page

Post by stpha6 »

Script URL: it's intranet, i can post screenshots if need be.
Version of script: 2.3
Hosting company: self
URL of phpinfo.php: intrant
URL of session_test.php: intranet - i did install it and it's working
What terms did you try when SEARCHING for a solution: hesk rewriting links, Hesk and wordpress slashes added to posts, inserting images into HESK knowledge base article, hesk rewrites urls

Write your message below:

I've integrated HESK into a wordpress install, so it does call the wordpress header at the top of the page. I'm sure this is probably the issue, and if you have a snarky response, I'm sorry. I really like your software and I wanted to integrate it into a site I'm building for our intranet - the only mods I made was to add the wp header at the top. Anyway, all is working splendidly except when you try edit a kb article, I create a new article, and when I add an image (is there a way to add an image via upload instead of just linking it via html by chance?), and or put in text with a \\ in it (I need to give folks instructions on how to get to network shares, etc), extra slashes are added when I save it and then reload it to save - looks like it's adding slashes on the way out of the database. It also adds slashes around the url of the html when I add an image, here is the code that the page ends up with:

n<img src="\"\\"http:/domain/imag.gif\\"\"" alt="\"\\"t\\"\"" width="\"\\"200\\"\""

here's what happens when I add the text with the two slashes and edit it af ew times:

<span class="\"\\"\\\\"\\\\\\\\"\\\\\\\\\\\\\\\\"Apple-style-span\\\\\\\\\\\\\\\\"\\\\\\\\"\\\\"\\"\"">type in&nbsp;</span>two backslashes and then \\<span class="\"\\"\\\\"\\\\\\\\"\\\\\\\\\\\\\\\\"Apple-style-span\\\\\\\\\\\\\\\\"\\\\\\\\"\\\\"\\"\"">servername

magic quotes is OFF on the server. If anyone has any thoughts on this, I'd love to hear them.

Thanks for this great software package, it's working beautifully for me for the most part.
stpha6
Posts: 2
Joined: Tue Oct 04, 2011 10:45 pm

Re: HESK slash issue on KB edit page

Post by stpha6 »

well, I think I've solved this. I turned on magic_quotes, and it seems to all be working now. Not sure if having magic quotes turned on is the best practice, but it's working atm. Go me.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK slash issue on KB edit page

Post by Klemen »

Hi,

Could you let me know what version of PHP you are running? I will test it from here.
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