- wrong check for empty

- forgot to check $sanitize
This commit is contained in:
Sebastian Mendel
2005-11-17 13:53:06 +00:00
parent 686fe576c5
commit 34b6eb346d

View File

@@ -74,15 +74,19 @@ function PMA_gpc_extract($array, &$target, $sanitize = TRUE) {
return FALSE;
}
$valid_variables = preg_replace( $GLOBALS['import_blacklist'], '',
array_keys( $array ) );
$valid_variables = array_unique( $valid_variables );
if ( $sanitize ) {
$valid_variables = preg_replace( $GLOBALS['import_blacklist'], '',
array_keys( $array ) );
$valid_variables = array_unique( $valid_variables );
} else {
$valid_variables = array_keys( $array );
}
$is_magic_quotes = get_magic_quotes_gpc();
foreach ( $valid_variables as $key ) {
if ( empty( $key ) ) {
if ( strlen( $key ) === 0 ) {
continue;
}
@@ -101,6 +105,7 @@ function PMA_gpc_extract($array, &$target, $sanitize = TRUE) {
return TRUE;
}
// check if a subform is submitted
$__redirect = NULL;
if ( isset( $_POST['usesubform'] ) ) {