mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adding 'safe string cmp' to API
This commit is contained in:
parent
5e5629cd7a
commit
dec5a82077
4 changed files with 31 additions and 5 deletions
|
|
@ -293,7 +293,7 @@ def setRestAPILog():
|
|||
|
||||
# Generic functions
|
||||
def is_admin(token):
|
||||
return DataStore.admin_token == token
|
||||
return safeCompareStrings(DataStore.admin_token, token)
|
||||
|
||||
@hook('before_request')
|
||||
def check_authentication():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue