diff options
Diffstat (limited to 'src/sp_disable_xxe.c')
| -rw-r--r-- | src/sp_disable_xxe.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sp_disable_xxe.c b/src/sp_disable_xxe.c index 9dea33c..f9712b5 100644 --- a/src/sp_disable_xxe.c +++ b/src/sp_disable_xxe.c | |||
| @@ -1,12 +1,15 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | PHP_FUNCTION(sp_libxml_disable_entity_loader) { | 3 | PHP_FUNCTION(sp_libxml_disable_entity_loader) { |
| 4 | sp_log_warn( "xxe", "A call to libxml_disable_entity_loader was tried and nopped"); | 4 | sp_log_warn("xxe", |
| 5 | "A call to libxml_disable_entity_loader was tried and nopped"); | ||
| 5 | RETURN_TRUE; | 6 | RETURN_TRUE; |
| 6 | } | 7 | } |
| 7 | 8 | ||
| 8 | PHP_FUNCTION(sp_libxml_set_external_entity_loader) { | 9 | PHP_FUNCTION(sp_libxml_set_external_entity_loader) { |
| 9 | sp_log_warn("xxe", "A call to libxml_set_external_entity_loader was tried and nopped"); | 10 | sp_log_warn( |
| 11 | "xxe", | ||
| 12 | "A call to libxml_set_external_entity_loader was tried and nopped"); | ||
| 10 | RETURN_TRUE; | 13 | RETURN_TRUE; |
| 11 | } | 14 | } |
| 12 | 15 | ||
