CC-4294: Webstream length should make hours or minutes optional. Also minutes > 59 should be parsed correctly.

-fixed
This commit is contained in:
Martin Konecny 2012-09-06 15:02:26 -04:00
parent 1b597cf6ed
commit 18ec23526f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {