Add unit test for external entity loading
This commit is contained in:
parent
fc10e07ffb
commit
77d57c974a
3 changed files with 36 additions and 0 deletions
3
test/fixtures/xml_external_entities.xml
vendored
Normal file
3
test/fixtures/xml_external_entities.xml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> ]>
|
||||
<stockCheck><productId>&xxe;</productId></stockCheck>
|
||||
Loading…
Add table
Add a link
Reference in a new issue