diff options
| author | jvoisin | 2018-01-05 11:07:15 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-05 11:07:15 +0100 |
| commit | c463edcee51dfab4358f1aff5a70c2f2f940a20b (patch) | |
| tree | dd25db9755700294f4f15cb226a25e70df5b88d5 /src/sp_disabled_functions.c | |
| parent | 3b113be573cdbca20ce9ec9c0a6efb25ccf51db5 (diff) | |
Fix a bypass in our eval blacklist
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 45b8954..d59dd93 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -464,7 +464,7 @@ ZEND_FUNCTION(eval_filter_callback) { | |||
| 464 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); | 464 | void (*orig_handler)(INTERNAL_FUNCTION_PARAMETERS); |
| 465 | const char* current_function_name = get_active_function_name(TSRMLS_C); | 465 | const char* current_function_name = get_active_function_name(TSRMLS_C); |
| 466 | 466 | ||
| 467 | if (SNUFFLEUPAGUS_G(in_eval) == true) { | 467 | if (SNUFFLEUPAGUS_G(in_eval) > 0) { |
| 468 | const char* filename = get_eval_filename(zend_get_executed_filename()); | 468 | const char* filename = get_eval_filename(zend_get_executed_filename()); |
| 469 | const int line_number = zend_get_executed_lineno(TSRMLS_C); | 469 | const int line_number = zend_get_executed_lineno(TSRMLS_C); |
| 470 | if (1 == SNUFFLEUPAGUS_G(config).config_eval->simulation) { | 470 | if (1 == SNUFFLEUPAGUS_G(config).config_eval->simulation) { |
