mirror of
https://github.com/e621ng/autocompleted.git
synced 2025-03-04 03:03:02 -05:00
Remove null char from tag query
Gets rid of the occasional error message in logs from misbehaving clients
This commit is contained in:
parent
6ca7db0a08
commit
75a53598e8
@ -138,7 +138,7 @@ fn validate_transform_tag(tag: &str) -> Result<String, AutocompleteError> {
|
||||
.nfc()
|
||||
.collect::<String>()
|
||||
.to_lowercase()
|
||||
.replace(['*', '%'], "")
|
||||
.replace(['*', '%', '\0'], "")
|
||||
.chars()
|
||||
.filter(|x| !x.is_whitespace())
|
||||
.collect();
|
||||
|
Loading…
Reference in New Issue
Block a user