From 18ec23526fa09f5587b087e7e624415cb5a91038 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 6 Sep 2012 15:02:26 -0400 Subject: [PATCH] CC-4294: Webstream length should make hours or minutes optional. Also minutes > 59 should be parsed correctly. -fixed --- airtime_mvc/application/models/Webstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Webstream.php b/airtime_mvc/application/models/Webstream.php index 8c74dca5a..22d51a3e8 100644 --- a/airtime_mvc/application/models/Webstream.php +++ b/airtime_mvc/application/models/Webstream.php @@ -115,7 +115,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable $di = null; $length = $parameters["length"]; - $result = preg_match("/^(?:([0-9]{1,2})h)?\s*(?:([0-6]?[0-9])m)?$/", $length, $matches); + $result = preg_match("/^(?:([0-9]{1,2})h)?\s*(?:([0-9]{1,2})m)?$/", $length, $matches); $invalid_date_interval = false; if ($result == 1 && count($matches) == 2) {