note 71573 added to function.get-magic-quotes-gpc

From: Date: Wed, 06 Dec 2006 14:32:24 +0000
Subject: note 71573 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-120338@lists.php.net to get a copy of this message
Re: php at kaiundina dot de (03-Feb-2005 02:18) 1. magic_quotes_gpc=on/off and magic_quotes_sybase=on/off I made test and your function worked right. These were the <input ... /> names I used: name="a" name="b.b b\b" name="c[c.1]" name="c[c 2]" name="c[c\3]" name="c.c c[c.' 4]" name="c ' c[c&quot;4]" name="d&quot;[d&quot;1]" (I used &quot; because I don't know other way to put " into the name) and the user-input value: a ' " \ \' \" \\ a 2. > 17) The chars '.', ' ' are always replaced by '_' when used in keys. This is true only for the top-level keys, such as "b.b b\b", "c.c c" and "c ' c" above. The second-level key "[c.' 4]" was not changed to [c_'_4] but was escaped acording to how magic_quites_XXX are set. Tested on PHP 4.4.0. These magic_quotes are really black magic :( It'll be good to make test against $_SESSION, but I can't do it today. ---- Server IP: 217.75.128.29 Probable Submitter: 82.103.91.89 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/71573 Del: integrated -- https://master.php.net/note/delete/71573/integrated Del: useless -- https://master.php.net/note/delete/71573/useless Del: bad code -- https://master.php.net/note/delete/71573/bad+code Del: spam -- https://master.php.net/note/delete/71573/spam Del: non-english -- https://master.php.net/note/delete/71573/non-english Del: in docs -- https://master.php.net/note/delete/71573/in+docs Del: other reasons-- https://master.php.net/note/delete/71573 Reject -- https://master.php.net/note/reject/71573 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120338) next »