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

From: Date: Sun, 07 Oct 2012 01:15:20 +0000
Subject: note 110274 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-191164@lists.php.net to get a copy of this message
Get rid of them, once and for all: <?php if (get_magic_quotes_gpc()) { function i_fucking_hate_magic_quotes_so_much(&$arr) { foreach ($arr as $key => &$val) { if ($key == "GLOBALS") { continue; } if (is_array($val)) { i_fucking_hate_magic_quotes_so_much($val); } else { $val = stripslashes($val); } } } i_fucking_hate_magic_quotes_so_much($GLOBALS); } ?> ---- Server IP: 213.172.110.14 Probable Submitter: 77.185.47.9 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/110274 Del: integrated -- https://master.php.net/note/delete/110274/integrated Del: useless -- https://master.php.net/note/delete/110274/useless Del: bad code -- https://master.php.net/note/delete/110274/bad+code Del: spam -- https://master.php.net/note/delete/110274/spam Del: non-english -- https://master.php.net/note/delete/110274/non-english Del: in docs -- https://master.php.net/note/delete/110274/in+docs Del: other reasons-- https://master.php.net/note/delete/110274 Reject -- https://master.php.net/note/reject/110274 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191164) next »