Skip to content

Commit

Permalink
more php source matching (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Nov 7, 2023
1 parent a81dcef commit 76cb1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artemis/reporting/modules/bruter/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def is_php_source(found_url: FoundURL) -> bool:
if ".php" not in path and ".inc" not in path and not path.endswith("/"):
return False

if "<?php" in found_url.content_prefix:
if "<?php" in found_url.content_prefix or re.match(r"<\?(\s|$)", found_url.content_prefix):
return True

return False
Expand Down

0 comments on commit 76cb1ba

Please sign in to comment.