|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-01-24 14:54 UTC] david dot reade at sbhelp dot co dot uk
Description:
------------
Using dots in queries, e.g. "/index.php?this.is.a.test", which returns a white page with no error, even with 'error_reporting(E_ALL)'. However using any other symbol, such as a colon, returns the correct result.
Reproduce code:
---------------
<?php
if(isset($_GET['this.is.a.test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this;is;a;test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this;is;a;test'])) {
echo('It works!'); exit();
}
?>
Expected result:
----------------
It works!
Actual result:
--------------
/index.php?this.is.a.test = <white page, no error>
/index.php?this;is;a;test = 'It works!'
/index.php?this:is:a:test = 'It works!'
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
Reproduce code should actually read: <?php if(isset($_GET['this.is.a.test'])) { echo('It works!'); exit(); } if(isset($_GET['this;is;a;test'])) { echo('It works!'); exit(); } if(isset($_GET['this:is:a:test'])) { echo('It works!'); exit(); } ?>