From 6c6d7337cbcdd114e7bb7b633c3b172c8914633a Mon Sep 17 00:00:00 2001 From: Leigh Date: Wed, 13 Jun 2012 16:36:35 +0200 Subject: [PATCH] When using session.hash_bits_per_character = 6, the default charset contains a character (comma) that will always be urlencoded. This results in cookie values having unpredictable lengths by default. Also %2C in your session id is ugly. --- ext/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/session/session.c b/ext/session/session.c index 7a8199d81060..66279f821d2b 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -229,7 +229,7 @@ static void php_session_decode(const char *val, int vallen TSRMLS_DC) /* {{{ */ * into URLs. */ -static char hexconvtab[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,-"; +static char hexconvtab[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"; enum { PS_HASH_FUNC_MD5,