CC-1665: Scheduled stream rebroadcasting and recording

-relax domain validator so we can use names like "localhost"
This commit is contained in:
Martin Konecny 2012-08-10 12:42:56 -04:00
parent fa749c58f0
commit 27025c8ca2
1 changed files with 4 additions and 3 deletions

View File

@ -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;