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

Skip to content

Commit fba1720

Browse files
committed
Minor patch
1 parent 9fad72f commit fba1720

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/core/agent.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,11 @@ def forgeUnionQuery(self, query, position, count, comment, prefix, suffix, char,
721721

722722
if conf.uFrom:
723723
fromTable = " FROM %s" % conf.uFrom
724-
elif kb.tableFrom:
725-
fromTable = " FROM %s" % kb.tableFrom
726-
else:
727-
fromTable = fromTable or FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), "")
724+
elif not fromTable:
725+
if kb.tableFrom:
726+
fromTable = " FROM %s" % kb.tableFrom
727+
else:
728+
fromTable = FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), "")
728729

729730
if query.startswith("SELECT "):
730731
query = query[len("SELECT "):]

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.121"
22+
VERSION = "1.0.5.122"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)