From 27025c8ca2748123d6e2a8f6c431ccd580c800fb Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 10 Aug 2012 12:42:56 -0400 Subject: [PATCH] CC-1665: Scheduled stream rebroadcasting and recording -relax domain validator so we can use names like "localhost" --- airtime_mvc/application/models/Webstream.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/models/Webstream.php b/airtime_mvc/application/models/Webstream.php index 627b81978..940989b72 100644 --- a/airtime_mvc/application/models/Webstream.php +++ b/airtime_mvc/application/models/Webstream.php @@ -107,9 +107,10 @@ class Application_Model_Webstream{ $url = $parameters["url"]; - //simple validator that checks to make sure that the url starts with http(s), - //and that the domain is at least 1 letter long followed by a period. - $result = preg_match("/^(http|https):\/\/.+\./", $url, $matches); + //simple validator that checks to make sure that the url starts with + //http(s), + //and that the domain is at least 1 letter long + $result = preg_match("/^(http|https):\/\/.+/", $url, $matches); if ($result == 0) { $valid['url'][0] = false;