#42718 [Opn]: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
| From: | lbarnaud@php.net | Date: | Sat, 06 Dec 2008 17:52:37 +0000 |
| Subject: | #42718 [Opn]: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131690@lists.php.net to get a copy of this message | ||
ID: 42718
Updated by: lbarnaud@php.net
Reported By: arnaud dot lb at gmail dot com
Status: Open
Bug Type: Filter related
Operating System: *
PHP Version: 5CVS-2008-11-01
Assigned To: lbarnaud
New Comment:
All my apologizes for this broken fix.
A quick workaround for 5.2.7 users is to add the following in the
php.ini:
filter.default_flags=0
Scott has reverted this and this bug is not present in CVS.
Previous Comments:
------------------------------------------------------------------------
[2008-12-06 17:32:55] magicaltux@php.net
This is a proposed fix for this bug that will keep old behavior.
Another fix could be simply to test IF_G(default_filter_flags) against
FILTER_FLAG_NO_ENCODE_QUOTES instead of 0.
http://ookoo.org/svn/snip/php_5_2-broken_filter_and_magic_quotes.patch
------------------------------------------------------------------------
[2008-12-06 17:18:40] scottmac@php.net
Reopening, this patch broke magic_quotes_gpc and has been backed out.
------------------------------------------------------------------------
[2008-11-02 22:07:23] lbarnaud@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2008-11-02 13:06:39] jani@php.net
Arnaud, fix it yourself.
------------------------------------------------------------------------
[2007-09-30 06:29:17] jani@php.net
Pierre, he is right, fix it. :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42718
--
Edit this bug report at http://bugs.php.net/?id=42718&edit=1