mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-02-11 07:56:36 +00:00
Minor improvements
This commit is contained in:
@@ -4909,7 +4909,7 @@ def prioritySortColumns(columns):
|
||||
"""
|
||||
|
||||
def _(column):
|
||||
return column and "id" in column.lower()
|
||||
return column and re.search(r"^id|id$", column, re.I) is not None
|
||||
|
||||
return sorted(sorted(columns, key=len), key=functools.cmp_to_key(lambda x, y: -1 if _(x) and not _(y) else 1 if not _(x) and _(y) else 0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user