summaryrefslogtreecommitdiff
path: root/src/sp_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_session.c')
-rw-r--r--src/sp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_session.c b/src/sp_session.c
index ce852ad..ea65f57 100644
--- a/src/sp_session.c
+++ b/src/sp_session.c
@@ -51,7 +51,7 @@ static int sp_hook_s_read(PS_READ_ARGS) {
51 51
52static int sp_hook_s_write(PS_WRITE_ARGS) { 52static int sp_hook_s_write(PS_WRITE_ARGS) {
53 if (ZSTR_LEN(val) > 0 && SNUFFLEUPAGUS_G(config).config_session->encrypt) { 53 if (ZSTR_LEN(val) > 0 && SNUFFLEUPAGUS_G(config).config_session->encrypt) {
54 zend_string *new_val = encrypt_zval(ZSTR_VAL(val), ZSTR_LEN(val)); 54 zend_string *new_val = encrypt_zval(val);
55 return old_s_write(mod_data, key, new_val, maxlifetime); 55 return old_s_write(mod_data, key, new_val, maxlifetime);
56 } 56 }
57 return old_s_write(mod_data, key, val, maxlifetime); 57 return old_s_write(mod_data, key, val, maxlifetime);
@@ -150,4 +150,4 @@ void hook_session() {
150 s_module = NULL; 150 s_module = NULL;
151 151
152 sp_hook_session_module(); 152 sp_hook_session_module();
153} \ No newline at end of file 153}