Page 1 of 1

Module Pisearch puts escape characters into code

Posted: Sun Sep 17, 2006 8:39 am
by stopsatgreen
I've upgraded to 1.5.1 of Module Pisearch, but when I make changes to the code and hit 'Submit' it places escape characters in front of all the quotes:

Code: Select all

<input type=\"text\" value=\"\" maxlength=\"50\" size=\"15\" name=\"pisearch\" id=\"searching\" />
I strip all the characters out and hit Submit again, but it puts them all back in again.

Re: Module Pisearch puts escape characters into code

Posted: Sun Sep 17, 2006 8:53 am
by Piratos
In many installations this problem is unknown and it seems you are the only one with this problem.

with install pisearch  is using the system commands:

Code: Select all

 $this->SetTemplate('form', $this->GetFormTemplate());
        
in getFormTemplate is nothing that escape something:
    function GetFormTemplate()
{
return '

GetS_Url().'" method="post">





';
}

if i edit the template with fckeditor, save it and use it - no problem.

So it can be only something that is not in the module.

Re: Module Pisearch puts escape characters into code

Posted: Mon Oct 02, 2006 1:23 pm
by stopsatgreen
I've just updated to 1.7.1 and I still get this problem! It's very weird, this is the only field in the whole CMS where this problem happens.

I've tried uninstalling and reinstalling the module; same problem happens.

Can anyone suggest why this might be?

Re: Module Pisearch puts escape characters into code

Posted: Mon Oct 02, 2006 5:16 pm
by Piratos
this is the only field in the whole CMS where this problem happens.
it seems you are the only one with this problem.

You are searching at the false end: 
with install pisearch  is using the system commands:
it cannot be a pisearcch problem.

Re: Module Pisearch puts escape characters into code

Posted: Wed Oct 04, 2006 10:35 am
by stopsatgreen
I understand that, but can anyone point me in a different direction to look?

Re: Module Pisearch puts escape characters into code

Posted: Wed Oct 04, 2006 6:30 pm
by Piratos
What cmsversion and editor is in use ?

Re: Module Pisearch puts escape characters into code

Posted: Fri Oct 06, 2006 9:57 am
by stopsatgreen
1.0.2 with FCKEditorX installed but disabled.

Re: Module Pisearch puts escape characters into code

Posted: Fri Oct 06, 2006 4:02 pm
by Piratos
I have done the same  1.02 FCK disabled, edit the templates and submit it, call it once again - all again.

Call the Page - all Ok.

Re: Module Pisearch puts escape characters into code

Posted: Sat Oct 14, 2006 5:05 pm
by stopsatgreen
The only way I can get this to work is if all the " characters are entered as ". Weird.

Re: Module Pisearch puts escape characters into code

Posted: Sun Oct 22, 2006 8:02 am
by Piratos
We have found the issue in the core include.php  - there is nonsens code about get_magic_quotes_gpc .

Try 1.72  - there is a workaround with this item.