From e7f541396715ee2895abcf73044b91ae9b746201 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 20 Dec 2017 18:09:53 +0100 Subject: Better parsing of the rules Thanks to this huge commit from @xXx-caillou-xXx, we can now write amazingly flexible rules.--- src/sp_cookie_encryption.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_cookie_encryption.c') diff --git a/src/sp_cookie_encryption.c b/src/sp_cookie_encryption.c index b7050da..c749040 100644 --- a/src/sp_cookie_encryption.c +++ b/src/sp_cookie_encryption.c @@ -8,9 +8,9 @@ static zend_long nonce_d = 0; static inline void generate_key(unsigned char *key) { PHP_SHA256_CTX ctx; - const char *user_agent = sp_getenv("HTTP_USER_AGENT"); + const char *user_agent = getenv("HTTP_USER_AGENT"); const char *env_var = - sp_getenv(SNUFFLEUPAGUS_G(config).config_snuffleupagus->cookies_env_var); + getenv(SNUFFLEUPAGUS_G(config).config_snuffleupagus->cookies_env_var); const char *encryption_key = SNUFFLEUPAGUS_G(config).config_snuffleupagus->encryption_key; -- cgit v1.3