Skip to content

Commit

Permalink
Fix fix SQLi
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Oct 13, 2023
1 parent 42c870f commit c50d943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/database_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def checkFileProcessed(cursor, verbose, file):
hash = getHash(file_handle.read())

try:
sql = "SELECT file from Files where hashSHA = ?"+ \
sql = "SELECT file from Files where hashSHA = (?) "+ \
" AND processed = 'True';"
cursor.execute(sql, hash)

Expand Down

0 comments on commit c50d943

Please sign in to comment.