mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
@- Fixed crash when magic_quotes were switched off. (Thies)
This commit is contained in:
parent
ef1ea9c895
commit
361ae6886e
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ PHPAPI void php_register_variable(char *var, char *strval, zval *track_vars_arra
|
|||
if (PG(magic_quotes_gpc)) {
|
||||
new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len, &new_entry.value.str.len, 0);
|
||||
} else {
|
||||
strval = estrndup(strval, new_entry.value.str.len);
|
||||
new_entry.value.str.val = estrndup(strval, new_entry.value.str.len);
|
||||
}
|
||||
new_entry.type = IS_STRING;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue