Skip to content

Commit 3676262

Browse files
committed
Python: Clean trailing whitespace
1 parent d7ad5a0 commit 3676262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/test/query-tests/Security/CWE-943-NoSqlInjection/mongoengine_bad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def connect_find():
1818
unsafe_search = request.args['search']
1919
json_search = json.loads(unsafe_search)
2020

21-
db = me.connect('mydb')
21+
db = me.connect('mydb')
2222
return db.movie.find({'name': json_search}) #$ result=BAD
2323

2424
@app.route("/connection_connect_find")
@@ -57,7 +57,7 @@ def subscript_find():
5757
unsafe_search = request.args['search']
5858
json_search = json.loads(unsafe_search)
5959

60-
db = me.connect('mydb')
60+
db = me.connect('mydb')
6161
return db['movie'].find({'name': json_search}) #$ result=BAD
6262

6363
# if __name__ == "__main__":

0 commit comments

Comments
 (0)