Re: Re: policy on magic quotes
| From: | Lukas Smith | Date: | Tue, 08 Feb 2005 08:25:44 +0000 |
| Subject: | Re: Re: policy on magic quotes | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-36037@lists.php.net to get a copy of this message | ||
Alan Knowles wrote:
add LiveUser to that list since we read from $_COOKIE. and actually a user reported issue which turned out to be related to magic quotes is what spawned by question. so you would say actually that all packages should handle magic quotes, however most packages will not really have to do anything, since they dont read from the superglobals. regards, Lukas$var = get_magic_quotes_gpc() ? stripslashes($var) : $var;Only code that deals directly with $_GET/$_POST etc should do anything like the above. - since most of PEAR is libraries and do not directly deal with this, It does not affect most packages. The only exceptions I know of are: Pager - not sure what it does Quickforms - handles it AFAIK Auth - handles it AFAIK.