Merge pull request #80 from frohoff/fixes

fix for lowercase comparison bug
selenium-screenshot-testing
Kevin Chung 2016-02-02 12:30:28 -05:00
commit 95f6d6b202
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ def chal(chalid):
for x in keys: for x in keys:
if x['type'] == 0: #static key if x['type'] == 0: #static key
print(x['flag'], key.strip().lower()) print(x['flag'], key.strip().lower())
if x['flag'] == key.strip().lower(): if x['flag'] and x['flag'].strip().lower() == key.strip().lower():
solve = Solves(chalid=chalid, teamid=session['id'], ip=request.remote_addr, flag=key) solve = Solves(chalid=chalid, teamid=session['id'], ip=request.remote_addr, flag=key)
db.session.add(solve) db.session.add(solve)
db.session.commit() db.session.commit()