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:
parent
52d1e29631
commit
609866b6ad
3 changed files with 6 additions and 5 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue