[Mapbender-dev] magic quotes

Astrid Emde (WhereGroup) astrid.emde at wheregroup.com
Thu Feb 26 07:30:24 EST 2009


On Thu, February 26, 2009 11:51 am, Christoph Baudson wrote:
> Hello,
>
> Mapbender is not very decisive whether to use stripslashes on request
> parameters or not. We seem to indecisive if we assume magic_quotes_gpc
> to be on or  off (it is on by default).
>
> I suggest we add something like this to globalSettings.php
>
> if (get_magic_quotes_gpc() === 1) {
>     array_walk($_POST, 'stripslashes');
>     array_walk($_GET, 'stripslashes');
> }
>
> By this, all input would be properly prepared, and no stripslashing
> would have to occur.
>
> What do you think?
>
> Christoph

Hello Christoph,

 this idea sounds reasonable to me.

astrid



More information about the Mapbender_dev mailing list