Skip to content

Commit

Permalink
fix: 'xpath' is not a valid MatcherType
Browse files Browse the repository at this point in the history
  • Loading branch information
xixixiba committed Mar 12, 2024
1 parent 8dc69f7 commit 0436840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pocsuite3/lib/yaml/nuclei/protocols/http/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def http_match(request: HttpRequest, resp_data: dict, interactsh=None):
matcher_res = match_dsl(matcher, resp_data)

elif matcher.type == MatcherType.XpathMatcher:
matcher_res == match_xpath(matcher, item)
matcher_res, = match_xpath(matcher, item)

if matcher.negative:
matcher_res = not matcher_res
Expand Down

0 comments on commit 0436840

Please sign in to comment.