From 75a53598e8f7c97f9f4afa08f33db9820768403e Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:36:36 +0100 Subject: [PATCH] Remove null char from tag query Gets rid of the occasional error message in logs from misbehaving clients --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8b20d0f..90edd7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -138,7 +138,7 @@ fn validate_transform_tag(tag: &str) -> Result { .nfc() .collect::() .to_lowercase() - .replace(['*', '%'], "") + .replace(['*', '%', '\0'], "") .chars() .filter(|x| !x.is_whitespace()) .collect();