Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c79a4 commit ebccba9Copy full SHA for ebccba9
1 file changed
plugins/generic/users.py
@@ -389,6 +389,9 @@ def getPrivileges(self, query2=False):
389
else:
390
privilege = value[count]
391
392
+ if privilege is None:
393
+ continue
394
+
395
# In PostgreSQL we get 1 if the privilege is
396
# True, 0 otherwise
397
if Backend.isDbms(DBMS.PGSQL) and getUnicode(privilege).isdigit():
@@ -506,8 +509,12 @@ def getPrivileges(self, query2=False):
506
509
query = rootQuery.blind.query % (index, user)
507
510
508
511
query = rootQuery.blind.query % (user, index)
512
513
privilege = unArrayizeValue(inject.getValue(query, union=False, error=False))
514
515
516
517
518
# In PostgreSQL we get 1 if the privilege is True,
519
# 0 otherwise
520
if Backend.isDbms(DBMS.PGSQL) and ", " in privilege:
0 commit comments