#14843 [Opn->Fbk]: Magic Quotes GPC is broken in 4.1.0
| From: | kalowsky@php.net | Date: | Sat, 17 Aug 2002 14:18:56 +0000 |
| Subject: | #14843 [Opn->Fbk]: Magic Quotes GPC is broken in 4.1.0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17126@lists.php.net to get a copy of this message | ||
ID: 14843
Updated by: kalowsky@php.net
Reported By: richard@alavator.com
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: Linux
PHP Version: 4.1.0
New Comment:
I believe this was fixed, can you please test a newer version of PHP
and confirm/deny this?
Previous Comments:
------------------------------------------------------------------------
[2002-01-04 02:29:14] richard@alavator.com
Here is a script that demonstrates the problem. If you uncomment line
4, magic quotes works consistently. If you do not, then some data (or
SOMETHING) will cause it to fail most of the time.
<?
mysql_pconnect("","",""); // Must fill in db options
if (isset($adCode)) {
// echo get_magic_quotes_gpc();
$sql="INSERT INTO ad_code set sponsor='{$sponsor}',
adCode='{$adCode}', cat='{$cat}'";
echo $sql."<br><br>";
mysql_query($sql);
echo mysql_error();
}
?>
Try various data with and with single quotes, and many times
magic_quotes_qpc will fail to escape the variables.
I would be happy to provide access to the actual script and server that
caused me to notice this problem. Just email.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14843&edit=1