Skip to content

Commit

Permalink
Fixed evidence files with uppercase extensions being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaddalena committed Oct 10, 2022
1 parent 1c4538d commit 195f7dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [3.0.7] - 10 October 2022

### Fixed

* Fixed evidence files with uppercase extensions not being included in rendered reports (Closes #74)

### Added

* Logs now have an option to mute notifications (available to users with the `admin` and `manager` roles)
Expand Down
2 changes: 1 addition & 1 deletion ghostwriter/modules/reportwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def process_evidence(self, evidence, par):
Paragraph meant to hold the evidence
"""
file_path = settings.MEDIA_ROOT + "/" + evidence["path"]
extension = file_path.split(".")[-1]
extension = file_path.split(".")[-1].lower()

# First, check if the file still exists on disk
if os.path.exists(file_path):
Expand Down

0 comments on commit 195f7dd

Please sign in to comment.