diff options
| author | jvoisin | 2018-07-09 07:37:58 +0000 |
|---|---|---|
| committer | xXx-caillou-xXx | 2018-07-09 09:37:58 +0200 |
| commit | 5da3a92492bf169e62367d954cfa7432bee51fed (patch) | |
| tree | 2e094ed1a5a8400269c48c520539b7dac28ced27 /src/sp_config.h | |
| parent | ca3be84076521c4bb053511775c94c0b195aeac8 (diff) | |
Trying to fix sloppy comparison (#186)
* Trying to fix sloppy comparison https://github.com/nbs-system/snuffleupagus/issues/10 by
modifying php's opcode
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sp_config.h b/src/sp_config.h index b44960f..979feda 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -53,6 +53,8 @@ typedef struct { bool enable; } sp_config_global_strict; | |||
| 53 | 53 | ||
| 54 | typedef struct { bool enable; } sp_config_random; | 54 | typedef struct { bool enable; } sp_config_random; |
| 55 | 55 | ||
| 56 | typedef struct { bool enable; } sp_config_sloppy; | ||
| 57 | |||
| 56 | typedef struct { bool enable; } sp_config_auto_cookie_secure; | 58 | typedef struct { bool enable; } sp_config_auto_cookie_secure; |
| 57 | 59 | ||
| 58 | typedef struct { bool enable; } sp_config_disable_xxe; | 60 | typedef struct { bool enable; } sp_config_disable_xxe; |
| @@ -151,6 +153,7 @@ typedef struct { | |||
| 151 | 153 | ||
| 152 | typedef struct { | 154 | typedef struct { |
| 153 | sp_config_random *config_random; | 155 | sp_config_random *config_random; |
| 156 | sp_config_sloppy *config_sloppy; | ||
| 154 | sp_config_unserialize *config_unserialize; | 157 | sp_config_unserialize *config_unserialize; |
| 155 | sp_config_disabled_functions *config_disabled_functions; | 158 | sp_config_disabled_functions *config_disabled_functions; |
| 156 | sp_config_disabled_functions *config_disabled_functions_ret; | 159 | sp_config_disabled_functions *config_disabled_functions_ret; |
| @@ -192,6 +195,7 @@ typedef struct { | |||
| 192 | #define SP_TOKEN_DISABLE_XXE ".disable_xxe" | 195 | #define SP_TOKEN_DISABLE_XXE ".disable_xxe" |
| 193 | #define SP_TOKEN_EVAL_BLACKLIST ".eval_blacklist" | 196 | #define SP_TOKEN_EVAL_BLACKLIST ".eval_blacklist" |
| 194 | #define SP_TOKEN_EVAL_WHITELIST ".eval_whitelist" | 197 | #define SP_TOKEN_EVAL_WHITELIST ".eval_whitelist" |
| 198 | #define SP_TOKEN_SLOPPY_COMPARISON ".sloppy_comparison" | ||
| 195 | 199 | ||
| 196 | // common tokens | 200 | // common tokens |
| 197 | #define SP_TOKEN_ENABLE ".enable(" | 201 | #define SP_TOKEN_ENABLE ".enable(" |
