Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebccba9

Browse files
committed
Fix for an Issue #543
1 parent 72c79a4 commit ebccba9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

plugins/generic/users.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ def getPrivileges(self, query2=False):
389389
else:
390390
privilege = value[count]
391391

392+
if privilege is None:
393+
continue
394+
392395
# In PostgreSQL we get 1 if the privilege is
393396
# True, 0 otherwise
394397
if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
@@ -506,8 +509,12 @@ def getPrivileges(self, query2=False):
506509
query = rootQuery.blind.query % (index, user)
507510
else:
508511
query = rootQuery.blind.query % (user, index)
512+
509513
privilege = unArrayizeValue(inject.getValue(query, union=False, error=False))
510514

515+
if privilege is None:
516+
continue
517+
511518
# In PostgreSQL we get 1 if the privilege is True,
512519
# 0 otherwise
513520
if Backend.isDbms(DBMS.PGSQL) and ", " in privilege:

0 commit comments

Comments
 (0)