1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-12 00:03:06 +00:00

hotfixes 2

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-30 23:21:57 -05:00
parent 52d1e29631
commit 609866b6ad
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
3 changed files with 6 additions and 5 deletions

View file

@ -181,7 +181,7 @@ export default async function (app: Express, db: NodePgDatabase) {
return;
}
} else {
if (!validateUrl(req.body.website)) {
if (req.body.website?.length > 0 && !validateUrl(req.body.website)) {
req.flash(
"error",
"The website URL provided is invalid or malformed."