Page MenuHomePhabricator

request-filter-2.patch

Authored By
bzimport
Nov 21 2014, 10:00 PM
Size
987 B
Referenced Files
None
Subscribers
None

request-filter-2.patch

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4117
Default Alt Text
request-filter-2.patch (987 B)

Event Timeline