mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-20 00:03:19 -04:00
1 parent
5c14b34a8b
commit
ebeb7a07af
63 files changed
+124
-113
No files matched your search
@@ -210,7 +210,6 @@ class TestDatabaseParameterSupport(unittest.TestCase):
|
||||
# This should not cause SQL injection
|
||||
malicious_input = "'; DROP TABLE test_table; --"
|
||||
cursor.execute("SELECT * FROM test_table WHERE name = :name", {'name': malicious_input})
|
||||
# results = cursor.fetchall()
|
||||
|
||||
# The table should still exist and be queryable
|
||||
cursor.execute("SELECT COUNT(*) FROM test_table")
|
||||
|
||||
Reference in new issue
Block a user