Skip to content

Commit

Permalink
Patch for an Issue sqlmapproject#697
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed May 20, 2014
1 parent babe49f commit 2495477
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2215,16 +2215,16 @@ def urlencode(value, safe="%&=-_", convall=False, limit=False, spaceplus=False):
if conf.get("direct"):
return value

if Backend.isDbms(DBMS.MSSQL) and not kb.tamperFunctions and any(ord(_) > 255 for _ in value):
warnMsg = "if you experience problems with "
warnMsg += "non-ASCII identifier names "
warnMsg += "you are advised to rerun with '--tamper=charunicodeencode'"
singleTimeWarnMessage(warnMsg)

count = 0
result = None if value is None else ""

if value:
if Backend.isDbms(DBMS.MSSQL) and not kb.tamperFunctions and any(ord(_) > 255 for _ in value):
warnMsg = "if you experience problems with "
warnMsg += "non-ASCII identifier names "
warnMsg += "you are advised to rerun with '--tamper=charunicodeencode'"
singleTimeWarnMessage(warnMsg)

if convall or safe is None:
safe = ""

Expand Down

0 comments on commit 2495477

Please sign in to comment.