Skip to content

Commit 78a7f26

Browse files
committed
JS: Update a JS test case
1 parent 28472ae commit 78a7f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/test/query-tests/Security/CWE-611/libxml.noent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ express().post('/some/path', function (req, res) {
1313
// NOT OK: unguarded entity expansion
1414
libxmljs.parseXmlString(req.param("some-xml"), { noent: true }) // $ Alert
1515
// NOT OK: unguarded entity expansion
16-
libxmljs.parseXmlString(req.files.products.data.toString('utf8'), { noent: true })// $ Source=files $ Alert=files
16+
libxmljs.parseXmlString(req.files.products.data.toString('utf8'), { noent: true })// $ Alert
1717

1818
// OK - no entity expansion
1919
libxmljs.parseXmlString(req.files.products.data.toString('utf8'), { noent: false })

0 commit comments

Comments
 (0)