Req #54486 [Opn->Bgs]: QUERY_STRING
| From: | dtajchreber@php.net | Date: | Thu, 07 Apr 2011 14:30:21 +0000 |
| Subject: | Req #54486 [Opn->Bgs]: QUERY_STRING | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160002@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54486&edit=1
ID: 54486
Updated by: dtajchreber@php.net
Reported by: vittorisimone at gmail dot com
Summary: QUERY_STRING
-Status: Open
+Status: Bogus
Type: Feature/Change Request
Package: *General Issues
Operating System: windows xp
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
php.net/htmlspecialchars
php.net/htmlentities
Previous Comments:
------------------------------------------------------------------------
[2011-04-07 15:36:02] vittorisimone at gmail dot com
Description:
------------
Hi, there's a problem with
$_SERVER['QUERY_STRING'];
this returns a string with unencoded ampersands; that's not good,
because the "&" is used to create entities and may cause bugs.
I need to escape all instances of '&' into '&', according to W3C
standards. Hope this will be fixed soon.
Test script:
---------------
<?php echo "?". $_SERVER['QUERY_STRING'] .
"&copy=".$testi[0]; ?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54486&edit=1