Page 1 of 1

pisearch escaping issue

Posted: Tue Aug 22, 2006 10:20 am
by Nemesis666
I use pisearch 1.04 and can't change the templates, because all " are escaped by a \ and thus the web page shows something like

Code: Select all

<!-- Start PisearchForm -->
<form action=\"http://cms.whatever.de/index.php?page=Pisearch\" method=\"post\">
<input type=\"text\" value=\"\" maxlength=\"50\" size=\"15\" name=\"pisearch\" id=\"searching\" />
<input type=\"submit\" value=\"Suchen\" id=\"buttonSearch\" />
<input type=\"hidden\" name=\"action\" value=\"showresults\" />
</form>
<!-- End ModPisearchForm -->
And guess what: That doesn't work ;)

Any workaround or bugfix in sight?

Greets,
Nemesis

Re: pisearch escaping issue

Posted: Tue Aug 22, 2006 4:09 pm
by Piratos
This is not an pisearch issue because with install only the standard function SetTemplate and GetFormTemplate are used and the normal edit function.

if you want help you must post the cmsms version.

Re: pisearch escaping issue

Posted: Wed Aug 23, 2006 7:32 am
by Nemesis666
I'm using 1.0 beta 5. With previous versions it worked fine (I think). I'll try a fresh install and post my result. Stay tuned ;)

Nemesis

Re: pisearch escaping issue

Posted: Wed Aug 23, 2006 8:01 am
by Nemesis666
So, did a fresh install with 1.0 beta 5 and pisearch 1.04. Same issue there: Initially, everything is ok, but saving the templates once escapes all " and ' and the search form isn't usable any more. Have to kill the extra \ via phpMyAdmin to have it work again.

Btw, the german translation for the pisearch menu item "Pisearch tralala" is funny, but I think it should be corrected for the sake of seriosity.  ;D

Greets,
Nemesis

Re: pisearch escaping issue

Posted: Wed Aug 23, 2006 3:25 pm
by Piratos
tralala
Ha Ha

Oh yea that was a little joke by me because i have not seen that the betas work correctly.

i am waiting on the next stable and than i will release the next piserach with several changes and without jokes.

Re: pisearch escaping issue

Posted: Sun Oct 22, 2006 8:01 am
by Piratos
We have found the issue - it is a bug in the core include.php - there is a part with nonsens code about get_magic_quotes_gpc in this file.

Version 1.72 of pisearch has a workaround .