- wrong check for empty
- forgot to check $sanitize
This commit is contained in:
@@ -74,15 +74,19 @@ function PMA_gpc_extract($array, &$target, $sanitize = TRUE) {
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
$valid_variables = preg_replace( $GLOBALS['import_blacklist'], '',
|
if ( $sanitize ) {
|
||||||
array_keys( $array ) );
|
$valid_variables = preg_replace( $GLOBALS['import_blacklist'], '',
|
||||||
$valid_variables = array_unique( $valid_variables );
|
array_keys( $array ) );
|
||||||
|
$valid_variables = array_unique( $valid_variables );
|
||||||
|
} else {
|
||||||
|
$valid_variables = array_keys( $array );
|
||||||
|
}
|
||||||
|
|
||||||
$is_magic_quotes = get_magic_quotes_gpc();
|
$is_magic_quotes = get_magic_quotes_gpc();
|
||||||
|
|
||||||
foreach ( $valid_variables as $key ) {
|
foreach ( $valid_variables as $key ) {
|
||||||
|
|
||||||
if ( empty( $key ) ) {
|
if ( strlen( $key ) === 0 ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,6 +105,7 @@ function PMA_gpc_extract($array, &$target, $sanitize = TRUE) {
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// check if a subform is submitted
|
// check if a subform is submitted
|
||||||
$__redirect = NULL;
|
$__redirect = NULL;
|
||||||
if ( isset( $_POST['usesubform'] ) ) {
|
if ( isset( $_POST['usesubform'] ) ) {
|
||||||
|
Reference in New Issue
Block a user