Skip to content

Commit

Permalink
handle requires login for "lines"
Browse files Browse the repository at this point in the history
  • Loading branch information
farsheedify authored and root committed Jan 3, 2025
1 parent 853a5e9 commit f55e15f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dojo/tools/semgrep/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def get_description(self, item):
description += f"**Result message:** {message}\n"

snippet = item["extra"].get("lines")
if snippet == "requires login":
snippet = None # Treat "requires login" as no snippet

if snippet is not None:
if "<![" in snippet:
snippet = snippet.replace("<![", "<! [")
Expand Down

0 comments on commit f55e15f

Please sign in to comment.