From a46ff8e1378b3315eb23eb6a46b030b3fd8c2653 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 18 Dec 2024 14:55:04 -0600 Subject: [PATCH] Fix Github URL validation in projects --- lib/Project.php | 2 +- www/css/core.css | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Project.php b/lib/Project.php index 9e7329f7..5c60037e 100644 --- a/lib/Project.php +++ b/lib/Project.php @@ -230,7 +230,7 @@ class Project{ } elseif(preg_match('|^https?://(www\.)?github.com/|ius', $this->VcsUrl)){ $this->VcsUrl = rtrim($this->VcsUrl, '/'); - if(!preg_match('|^https://github.com/[^/]+/[^/]+|ius', $this->VcsUrl)){ + if(!preg_match('|^https://github.com/[^/]+/[^/]+$|ius', $this->VcsUrl)){ $error->Add(new Exceptions\InvalidVcsUrlException()); } } diff --git a/www/css/core.css b/www/css/core.css index d8068772..0d999b82 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -749,14 +749,12 @@ ul.message.error > li + li{ padding-top: 2rem; } -.data-table td:first-child, .data-table th:first-child{ padding-left: 0; } -.data-table td:last-child, .data-table th:last-child{ - padding-left: 0; + padding-right: 0; } .data-table td,