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

Skip to content

Commit e9b3af6

Browse files
committed
Minor compatibility patch for 'Copy as cURL' browser feature
1 parent 194c911 commit e9b3af6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.11.8"
21+
VERSION = "1.4.11.9"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,8 @@ def _format_action_invocation(self, action):
961961
argv[i] = ""
962962
elif argv[i] in DEPRECATED_OPTIONS:
963963
argv[i] = ""
964+
elif argv[i].startswith("--data-raw"):
965+
argv[i] = argv[i].replace("--data-raw", "--data", 1)
964966
elif any(argv[i].startswith(_) for _ in ("--tamper", "--ignore-code", "--skip")):
965967
key = re.search(r"\-?\-(\w+)\b", argv[i]).group(1)
966968
index = auxIndexes.get(key, None)

0 commit comments

Comments
 (0)