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

Skip to content

Commit 305bfd9

Browse files
committed
Implements #1763
1 parent f9aaec7 commit 305bfd9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core/agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from lib.core.settings import DEFAULT_COOKIE_DELIMITER
4040
from lib.core.settings import DEFAULT_GET_POST_DELIMITER
4141
from lib.core.settings import GENERIC_SQL_COMMENT
42+
from lib.core.settings import NULL
4243
from lib.core.settings import PAYLOAD_DELIMITER
4344
from lib.core.settings import REPLACEMENT_MARKER
4445
from lib.core.unescaper import unescaper
@@ -747,6 +748,9 @@ def forgeUnionQuery(self, query, position, count, comment, prefix, suffix, char,
747748
intoRegExp = intoRegExp.group(1)
748749
query = query[:query.index(intoRegExp)]
749750

751+
position = 0
752+
char = NULL
753+
750754
for element in xrange(0, count):
751755
if element > 0:
752756
unionQuery += ','

lib/core/settings.py

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

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.0.4.1"
23+
VERSION = "1.0.4.2"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)