From d741238ccb966ff69c8aeeaa7c7538b14844102a Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Thu, 5 Jan 2023 03:11:20 +0900 Subject: [PATCH] Revert "Rejectd illegal characters from blog name" This reverts commit 9776374d17822d5a4bb43e833a1830310cbbfecc. --- src/routes/blogs.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/blogs.rs b/src/routes/blogs.rs index 40150ca3..295d08a8 100644 --- a/src/routes/blogs.rs +++ b/src/routes/blogs.rs @@ -82,8 +82,6 @@ fn valid_slug(title: &str) -> Result<(), ValidationError> { let slug = Blog::slug(title); if slug.is_empty() { Err(ValidationError::new("empty_slug")) - } else if slug.contains(&['<', '>', '&', '@', '\'', '"', ' ', '\n', '\t'][..]) { - Err(ValidationError::new("slug_illegal_char")) } else { Ok(()) }