shared: fix broken string_is_safe
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b3c2cf3d8e
commit
011afa76fb
+2
-2
@@ -5879,10 +5879,10 @@ bool string_is_safe(const char *p) {
|
||||
assert(p);
|
||||
|
||||
for (t = p; *t; t++) {
|
||||
if (*p < ' ')
|
||||
if (*t < ' ')
|
||||
return false;
|
||||
|
||||
if (strchr("\\\"\'", *p))
|
||||
if (strchr("\\\"\'", *t))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user