mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Fixes an SQDL2 runtime error (#49327)
If you tried to call SQDL with " at the end, it would throw eg WHERE var="something"
This commit is contained in:
@@ -1176,7 +1176,7 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/SDQL2_VV_all, new(null
|
||||
char = query_text[i]
|
||||
|
||||
if(char == "\"")
|
||||
if(query_text[i + length(char)] == "'")
|
||||
if((i + length(char) <= len) && query_text[i + length(char)] == "'")
|
||||
word += "\""
|
||||
i += length(query_text[i + length(char)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user