mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #41093 (magic_quotes_gpc ignores first arrays keys).
This commit is contained in:
parent
170af7e861
commit
843d0d58a0
1 changed files with 1 additions and 2 deletions
|
@ -158,8 +158,7 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_arra
|
|||
array_init(gpc_element);
|
||||
zend_hash_next_index_insert(symtable1, &gpc_element, sizeof(zval *), (void **) &gpc_element_p);
|
||||
} else {
|
||||
if (PG(magic_quotes_gpc) && (index != var)) {
|
||||
/* no need to addslashes() the index if it's the main variable name */
|
||||
if (PG(magic_quotes_gpc)) {
|
||||
escaped_index = php_addslashes(index, index_len, &index_len, 0 TSRMLS_CC);
|
||||
} else {
|
||||
escaped_index = index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue