Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit e7095ba

Browse files
author
Max Schaefer
committed
Fix nonHtmlContentType.
1 parent f0e1147 commit e7095ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ql/src/semmle/go/security/ReflectedXssCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module ReflectedXss {
7575
pred.getStringValue().regexpMatch("^[^<].*")
7676
or
7777
// json data cannot begin with `<`
78-
pred = any(EncodingJson::MarshalFunction mf).getOutput().getExitNode(_)
78+
exists(EncodingJson::MarshalFunction mf | pred = mf.getOutput().getNode(mf.getACall()))
7979
)
8080
)
8181
}

0 commit comments

Comments
 (0)