Skip to content

Commit 3da80df

Browse files
author
Joshua Rogers
committed
Fix incorrect json check
1 parent bb973d3 commit 3da80df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gixy/plugins/regex_redos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def audit(self, directive):
9292
if (
9393
"1" not in response_json or
9494
response_json["1"] is None or
95-
"source" not in response_json or
95+
"source" not in response_json["1"] or
9696
response_json["1"]["source"] != regex_pattern
9797
):
9898
self.add_issue(directive=directive, reason=fail_reason, severity=self.unknown_severity)

0 commit comments

Comments
 (0)