Skip to content

Commit 86e5e59

Browse files
authored
proper JSON encoding without changing " to '
1 parent f2f15e9 commit 86e5e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlmap_websocket_proxy/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def send_inject(
7070
params = [x for _, x in parse_qsl(path)]
7171

7272
if json_encode:
73-
params = [unquote(x).replace('"',"'") for x in params]
73+
params = [json.dumps(unquote(x))[1:-1] for x in params]
7474

7575
for x in params:
7676
data = data.replace("%param%", x, 1)

0 commit comments

Comments
 (0)