summaryrefslogtreecommitdiff
path: root/src/tests/xxe
diff options
context:
space:
mode:
authorjvoisin2021-04-28 09:34:42 +0200
committerjvoisin2021-04-28 10:55:53 +0200
commitfb3571de3d9dd0df9bfb38579b56dbb9746df551 (patch)
treee4ef03c633fc00cc4cbdec93255f0318c220d49d /src/tests/xxe
parent99cab6d750e2d8e2f6dfc412394ce49ae7534bd6 (diff)
Add some logging for the XXE mitigation
Diffstat (limited to 'src/tests/xxe')
-rw-r--r--src/tests/xxe/disable_xxe_dom_disabled.phpt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/xxe/disable_xxe_dom_disabled.phpt b/src/tests/xxe/disable_xxe_dom_disabled.phpt
index 493f5a3..a49e094 100644
--- a/src/tests/xxe/disable_xxe_dom_disabled.phpt
+++ b/src/tests/xxe/disable_xxe_dom_disabled.phpt
@@ -44,8 +44,13 @@ printf("without xxe: %s", $dom->getElementsByTagName('testing')->item(0)->nodeVa
44 44
45?> 45?>
46--EXPECTF-- 46--EXPECTF--
47Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d
47libxml_disable_entity to true: WARNING, external entity loaded! 48libxml_disable_entity to true: WARNING, external entity loaded!
49
50Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d
48libxml_disable_entity to false: WARNING, external entity loaded! 51libxml_disable_entity to false: WARNING, external entity loaded!
52
53Warning: [snuffleupagus][0.0.0.0][xxe][log] A call to libxml_disable_entity_loader was tried and nopped in %s/tests/xxe/disable_xxe_dom_disabled.php on line %d
49without xxe: foo 54without xxe: foo
50--CLEAN-- 55--CLEAN--
51<?php 56<?php