diff options
| author | Ben Fuhrmannek | 2016-02-18 11:28:10 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-02-18 11:28:10 +0100 |
| commit | caa8b96b03c8291de069c45b75d68ff2ec3bce95 (patch) | |
| tree | b6d3d9cbb7f910a582767a614c33b477aaae7d6e /suhosin7.c | |
| parent | c704ab1133603f215ddec45a094e8cb84331a11d (diff) | |
fixed SUHOSIN7_G macro + commented out future globals
Diffstat (limited to '')
| -rw-r--r-- | suhosin7.c | 34 |
1 files changed, 17 insertions, 17 deletions
| @@ -39,7 +39,7 @@ ZEND_DECLARE_MODULE_GLOBALS(suhosin7) | |||
| 39 | /* ------------------------------------------------------------------------ */ | 39 | /* ------------------------------------------------------------------------ */ |
| 40 | /* PERDIR CHECKS */ | 40 | /* PERDIR CHECKS */ |
| 41 | #define PERDIR_CHECK(lower) \ | 41 | #define PERDIR_CHECK(lower) \ |
| 42 | if (!SUHOSIN_G(lower ## _perdir) && stage == ZEND_INI_STAGE_HTACCESS) { \ | 42 | if (!SUHOSIN7_G(lower ## _perdir) && stage == ZEND_INI_STAGE_HTACCESS) { \ |
| 43 | return FAILURE; \ | 43 | return FAILURE; \ |
| 44 | } | 44 | } |
| 45 | 45 | ||
| @@ -87,27 +87,27 @@ static ZEND_INI_MH(OnUpdateSuhosin_perdir) | |||
| 87 | { | 87 | { |
| 88 | char *tmp; | 88 | char *tmp; |
| 89 | 89 | ||
| 90 | if (SUHOSIN_G(perdir)) { | 90 | if (SUHOSIN7_G(perdir)) { |
| 91 | pefree(SUHOSIN_G(perdir), 1); | 91 | pefree(SUHOSIN7_G(perdir), 1); |
| 92 | } | 92 | } |
| 93 | SUHOSIN_G(perdir) = NULL; | 93 | SUHOSIN7_G(perdir) = NULL; |
| 94 | 94 | ||
| 95 | /* Initialize the perdir flags */ | 95 | /* Initialize the perdir flags */ |
| 96 | SUHOSIN_G(log_perdir) = 0; | 96 | SUHOSIN7_G(log_perdir) = 0; |
| 97 | SUHOSIN_G(exec_perdir) = 0; | 97 | SUHOSIN7_G(exec_perdir) = 0; |
| 98 | SUHOSIN_G(misc_perdir) = 0; | 98 | SUHOSIN7_G(misc_perdir) = 0; |
| 99 | SUHOSIN_G(get_perdir) = 0; | 99 | SUHOSIN7_G(get_perdir) = 0; |
| 100 | SUHOSIN_G(post_perdir) = 0; | 100 | SUHOSIN7_G(post_perdir) = 0; |
| 101 | SUHOSIN_G(cookie_perdir) = 0; | 101 | SUHOSIN7_G(cookie_perdir) = 0; |
| 102 | SUHOSIN_G(request_perdir) = 0; | 102 | SUHOSIN7_G(request_perdir) = 0; |
| 103 | SUHOSIN_G(upload_perdir) = 0; | 103 | SUHOSIN7_G(upload_perdir) = 0; |
| 104 | SUHOSIN_G(sql_perdir) = 0; | 104 | SUHOSIN7_G(sql_perdir) = 0; |
| 105 | 105 | ||
| 106 | if (new_value == NULL) { | 106 | if (new_value == NULL) { |
| 107 | return SUCCESS; | 107 | return SUCCESS; |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | tmp = SUHOSIN_G(perdir) = pestrdup(ZSTR_VAL(new_value), 1); | 110 | tmp = SUHOSIN7_G(perdir) = pestrdup(ZSTR_VAL(new_value), 1); |
| 111 | 111 | ||
| 112 | /* trim the whitespace */ | 112 | /* trim the whitespace */ |
| 113 | while (isspace(*tmp)) tmp++; | 113 | while (isspace(*tmp)) tmp++; |
| @@ -195,7 +195,7 @@ list_destroy: | |||
| 195 | static ZEND_INI_MH(OnUpdateSuhosin_ ## name) \ | 195 | static ZEND_INI_MH(OnUpdateSuhosin_ ## name) \ |
| 196 | { \ | 196 | { \ |
| 197 | EXEC_PERDIR_CHECK(); \ | 197 | EXEC_PERDIR_CHECK(); \ |
| 198 | parse_list(&SUHOSIN_G(name), ZSTR_VAL(new_value), 1); \ | 198 | parse_list(&SUHOSIN7_G(name), ZSTR_VAL(new_value), 1); \ |
| 199 | return SUCCESS; \ | 199 | return SUCCESS; \ |
| 200 | } | 200 | } |
| 201 | S7_INI_MH_EXECLIST(include_whitelist) | 201 | S7_INI_MH_EXECLIST(include_whitelist) |
| @@ -208,14 +208,14 @@ S7_INI_MH_EXECLIST(func_blacklist) | |||
| 208 | static ZEND_INI_MH(OnUpdateSuhosin_cookie_cryptlist) | 208 | static ZEND_INI_MH(OnUpdateSuhosin_cookie_cryptlist) |
| 209 | { | 209 | { |
| 210 | COOKIE_PERDIR_CHECK(); | 210 | COOKIE_PERDIR_CHECK(); |
| 211 | parse_list(&SUHOSIN_G(cookie_cryptlist), ZSTR_VAL(new_value), 0); | 211 | parse_list(&SUHOSIN7_G(cookie_cryptlist), ZSTR_VAL(new_value), 0); |
| 212 | return SUCCESS; | 212 | return SUCCESS; |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | static ZEND_INI_MH(OnUpdateSuhosin_cookie_plainlist) | 215 | static ZEND_INI_MH(OnUpdateSuhosin_cookie_plainlist) |
| 216 | { | 216 | { |
| 217 | COOKIE_PERDIR_CHECK(); | 217 | COOKIE_PERDIR_CHECK(); |
| 218 | parse_list(&SUHOSIN_G(cookie_plainlist), ZSTR_VAL(new_value), 0); | 218 | parse_list(&SUHOSIN7_G(cookie_plainlist), ZSTR_VAL(new_value), 0); |
| 219 | return SUCCESS; | 219 | return SUCCESS; |
| 220 | } | 220 | } |
| 221 | 221 | ||
