#39763 [Csd->Asn]: Double applied magic quotes

From: Date: Fri, 08 Dec 2006 17:10:53 +0000
Subject: #39763 [Csd->Asn]: Double applied magic quotes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106097@lists.php.net to get a copy of this message
ID: 39763 Updated by: tony2001@php.net Reported By: php dot 20 dot korkman at spamgourmet dot com -Status: Closed +Status: Assigned Bug Type: Strings related Operating System: SuSE Linux 9.0 PHP Version: 5.2.0 -Assigned To: +Assigned To: iliaa New Comment: Reopened. Previous Comments: ------------------------------------------------------------------------ [2006-12-07 11:00:11] tony2001@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. ------------------------------------------------------------------------ [2006-12-07 10:14:48] php dot 20 dot korkman at spamgourmet dot com Description: ------------ parse_str() changed behaviour from PHP 5.14 to 5.2 in that it seems to apply the magic_quotes_gpc directive *twice*. Needless to say this causes heavy problems when using this function. Reproduce code: --------------- <?php $arr = array(); parse_str("this=%22probably+a+bug%22", $arr); echo $arr['this']; ?> Expected result: ---------------- \"probably a bug\" Actual result: -------------- \\\"probably a bug\\\" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39763&edit=1

« previous php.bugs (#106097) next »