mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed handling of session variable serialization on certain prefix characters. Reported by Stefan Esser
This commit is contained in:
parent
78f43a53f7
commit
3c78ad763e
1 changed files with 1 additions and 1 deletions
|
@ -770,7 +770,7 @@ PS_SERIALIZER_ENCODE_FUNC(php) /* {{{ */
|
||||||
|
|
||||||
PS_ENCODE_LOOP(
|
PS_ENCODE_LOOP(
|
||||||
smart_str_appendl(&buf, key, key_length);
|
smart_str_appendl(&buf, key, key_length);
|
||||||
if (memchr(key, PS_DELIMITER, key_length)) {
|
if (memchr(key, PS_DELIMITER, key_length) || memchr(key, PS_UNDEF_MARKER, key_length)) {
|
||||||
PHP_VAR_SERIALIZE_DESTROY(var_hash);
|
PHP_VAR_SERIALIZE_DESTROY(var_hash);
|
||||||
smart_str_free(&buf);
|
smart_str_free(&buf);
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue