Revert "Rejectd illegal characters from blog name"
This reverts commit 9776374d17
.
This commit is contained in:
parent
9776374d17
commit
d741238ccb
@ -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(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user