Skip to content

Commit

Permalink
Fixed handling of session variable serialization on certain prefix ch…
Browse files Browse the repository at this point in the history
…aracters. Reported by Stefan Esser
  • Loading branch information
Ilia Alshanetsky committed Apr 26, 2010
1 parent 78f43a5 commit 3c78ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/session/session.c
Expand Up @@ -770,7 +770,7 @@ PS_SERIALIZER_ENCODE_FUNC(php) /* {{{ */

PS_ENCODE_LOOP(
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);
smart_str_free(&buf);
return FAILURE;
Expand Down

0 comments on commit 3c78ad7

Please sign in to comment.