shared: fix broken string_is_safe
This commit is contained in:
parent
b3c2cf3d8e
commit
011afa76fb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue