From d0efa5d3fe6d4056681ec77766e9d35062037f4f Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Wed, 1 Sep 2021 21:19:49 -0700 Subject: [PATCH] Remove accidental URL validation for gallery (#246) --- src/routes/projects.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/projects.rs b/src/routes/projects.rs index f69062319..45cfd7913 100644 --- a/src/routes/projects.rs +++ b/src/routes/projects.rs @@ -1076,9 +1076,9 @@ pub async fn delete_project_icon( #[derive(Serialize, Deserialize, Validate)] pub struct GalleryCreateQuery { pub featured: bool, - #[validate(url, length(min = 1, max = 255))] + #[validate(length(min = 1, max = 255))] pub title: Option, - #[validate(url, length(min = 1, max = 2048))] + #[validate(length(min = 1, max = 2048))] pub description: Option, }