CC-1665: Scheduled stream rebroadcasting and recording
-relax domain validator so we can use names like "localhost"
This commit is contained in:
parent
fa749c58f0
commit
27025c8ca2
|
@ -107,9 +107,10 @@ class Application_Model_Webstream{
|
||||||
|
|
||||||
|
|
||||||
$url = $parameters["url"];
|
$url = $parameters["url"];
|
||||||
//simple validator that checks to make sure that the url starts with http(s),
|
//simple validator that checks to make sure that the url starts with
|
||||||
//and that the domain is at least 1 letter long followed by a period.
|
//http(s),
|
||||||
$result = preg_match("/^(http|https):\/\/.+\./", $url, $matches);
|
//and that the domain is at least 1 letter long
|
||||||
|
$result = preg_match("/^(http|https):\/\/.+/", $url, $matches);
|
||||||
|
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
$valid['url'][0] = false;
|
$valid['url'][0] = false;
|
||||||
|
|
Loading…
Reference in New Issue