merge/upstream-full #105
@@ -180,11 +180,15 @@ _inp_slashguard_check(void)
|
|||||||
return false;
|
return false;
|
||||||
if (!prefs_get_boolean(PREF_SLASH_GUARD))
|
if (!prefs_get_boolean(PREF_SLASH_GUARD))
|
||||||
return false;
|
return false;
|
||||||
if (memchr(inp_line + 1, '/', 3)) {
|
size_t n = 1;
|
||||||
cons_show("Your text contains a slash in the first 4 characters");
|
while (inp_line[n] != '\0' && n < 4) {
|
||||||
free(inp_line);
|
if (inp_line[n] == '/') {
|
||||||
inp_line = NULL;
|
cons_show("Your text contains a slash in the first 4 characters");
|
||||||
return true;
|
free(inp_line);
|
||||||
|
inp_line = NULL;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
n++;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user