From 9322b08776f5162db414ed256791744ffacf3c55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Wed, 28 Mar 2012 10:53:17 +0200 Subject: [PATCH] Girocco::Util: Accept web URLs with port number There's really no reason to reject URLs with an alternative port and it can be especially useful for stuff like JSON notify URLs when someone wants to directly notify a specialised HTTP server. --- Girocco/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/Util.pm b/Girocco/Util.pm index fe125ea..78fceab 100644 --- a/Girocco/Util.pm +++ b/Girocco/Util.pm @@ -107,7 +107,7 @@ sub valid_email_multi { } sub valid_web_url { $_ = $_[0]; - /^https?:\/\/[a-zA-Z0-9-.]+(\/[_\%a-zA-Z0-9.\/~:?&=;-]*)?(#[a-zA-Z0-9._-]+)?$/; + /^https?:\/\/[a-zA-Z0-9-.:]+(\/[_\%a-zA-Z0-9.\/~:?&=;-]*)?(#[a-zA-Z0-9._-]+)?$/; } sub valid_repo_url { $_ = $_[0]; -- 2.11.4.GIT