Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4552
request-filter-2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:00 PM
2014-11-21 22:00:20 (UTC+0)
Size
987 B
Referenced Files
None
Subscribers
None
request-filter-2.patch
View Options
Index: WebRequest.php
===================================================================
--- WebRequest.php (revision 26398)
+++ WebRequest.php (working copy)
@@ -225,7 +225,7 @@
* @return string
*/
function getVal( $name, $default = NULL ) {
- $val = $this->getGPCVal( $_REQUEST, $name, $default );
+ $val = $this->getGPCVal( array_merge( $_GET, $_POST ), $name, $default );
if( is_array( $val ) ) {
$val = $default;
}
@@ -246,7 +246,7 @@
* @return array
*/
function getArray( $name, $default = NULL ) {
- $val = $this->getGPCVal( $_REQUEST, $name, $default );
+ $val = $this->getGPCVal( array_merge( $_GET, $_POST ), $name, $default );
if( is_null( $val ) ) {
return null;
} else {
@@ -351,7 +351,7 @@
function getValues() {
$names = func_get_args();
if ( count( $names ) == 0 ) {
- $names = array_keys( $_REQUEST );
+ $names = array_keys( array_merge( $_GET, $_POST ) );
}
$retVal = array();
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4117
Default Alt Text
request-filter-2.patch (987 B)
Attached To
Mode
T13559: WebRequest input handling cleanup: use $_GET and $_POST, not $_REQUEST
Attached
Detach File
Event Timeline
Log In to Comment