Revert "Rejectd illegal characters from blog name"

This reverts commit 9776374d17.
This commit is contained in:
Kitaiti Makoto 2023-01-05 03:11:20 +09:00
parent 9776374d17
commit d741238ccb

View File

@ -82,8 +82,6 @@ fn valid_slug(title: &str) -> Result<(), ValidationError> {
let slug = Blog::slug(title); let slug = Blog::slug(title);
if slug.is_empty() { if slug.is_empty() {
Err(ValidationError::new("empty_slug")) Err(ValidationError::new("empty_slug"))
} else if slug.contains(&['<', '>', '&', '@', '\'', '"', ' ', '\n', '\t'][..]) {
Err(ValidationError::new("slug_illegal_char"))
} else { } else {
Ok(()) Ok(())
} }