mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
@- Fixed crash when magic_quotes were switched off. (Thies)
This commit is contained in:
parent
ef1ea9c895
commit
361ae6886e
@ -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…
Reference in New Issue
Block a user