From ad6b3e723fe26bf1a3a573aed776960916d35499 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 10 Jan 2018 14:56:33 +0100 Subject: Eval whitelist Implement whitelist in eval--- src/php_snuffleupagus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/php_snuffleupagus.h') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index ca39bb8..93ef472 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -63,7 +63,7 @@ sp_config config; bool is_config_valid; HashTable *disabled_functions_hook; HashTable *sp_internal_functions_hook; -HashTable *sp_eval_filter_functions_hook; +HashTable *sp_eval_blacklist_functions_hook; ZEND_END_MODULE_GLOBALS(snuffleupagus) #define SNUFFLEUPAGUS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(snuffleupagus, v) @@ -85,7 +85,7 @@ ZEND_TSRMLS_CACHE_EXTERN() #endif PHP_FUNCTION(check_disabled_function); -PHP_FUNCTION(eval_filter_callback); +PHP_FUNCTION(eval_blacklist_callback); static inline void sp_terminate() { zend_bailout(); } -- cgit v1.3