Search function and magic_quotes_gpc

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Search function and magic_quotes_gpc

Post by cmb » Thu Jun 14, 2012 7:00 pm

Hello Developers,

the search function doesn't handle magic_quotes_gpc=On properly. In cmsimple/search.php stsl($search) has to be put on line 40 instead of line 71. Or should stsl() be called in initvar(). I still don't like initvar(), but as it's already there it might be useful for this purpose. OTOH this might be incompatible to existing code (e.g. plugins).

However, in cmsimple/cms.php line 1192 has of course to be changed:

Code: Select all

        $words = explode(',', stsl($_GET['search'])); 
Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply