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

Skip to content

Commit 0c01be0

Browse files
committed
Ugly work-around to avoid unescaping WAITFOR DELAY time between single quotes (unescaped CHAR(..) value does not work).
1 parent 9c61adb commit 0c01be0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def unescape(string, dbms):
6969
"Sybase": Sybase.unescape
7070
}
7171

72-
if dbms in unescaper:
72+
if dbms in unescaper and "WAITFOR DELAY " not in string:
7373
return unescaper[dbms](string)
7474
else:
7575
return string

0 commit comments

Comments
 (0)