Bug #78153 [Opn->Nab]: $_SERVER['REQUEST_METHOD'] become redirect when form field contains ($_GET)

From: Date: Thu, 13 Jun 2019 00:22:00 +0000
Subject: Bug #78153 [Opn->Nab]: $_SERVER['REQUEST_METHOD'] become redirect when form field contains ($_GET)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221263@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78153&edit=1 ID: 78153 Updated by: requinix@php.net Reported by: salamj at gmail dot com Summary: $_SERVER['REQUEST_METHOD'] become redirect when form field contains ($_GET) -Status: Open +Status: Not a bug Type: Bug Package: *Web Server problem Operating System: linux PHP Version: 7.3.6 Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2019-06-12 22:29:20] salamj at gmail dot com Description: ------------ When form with POST method contains text field and fill it with $_GET or $_SESSION , $_POST, ... the page in action redirect to 403 page error: Test script: --------------- <form method="post" action="<?php $_SERVER['PHP_SELF'] ?>"> <input type="text" name="something"> <input type="submit" name="send" value="send"> </form> <?php $method = $_SERVER['REQUEST_METHOD']; echo $method; Expected result: ---------------- POST Actual result: -------------- Forbidden You don't have permission to access /req.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78153&edit=1

« previous php.bugs (#221263) next »