Skip to content

Commit

Permalink
Fix ExpireDate Range In PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwoon-jang committed Apr 25, 2024
1 parent 1d62de4 commit cbe904a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/src/PlaybackPolicyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct($persistent=false, $licenseDuration=0, $expireDate=
}
}
if(!empty($expireDate)) {
if(preg_match('/[0-9]{4}-[0,1][0-9]-[0-5][0-9]T[0-2][0-3]:[0-5][0-9]:[0-5][0-9]Z/', $expireDate)){
if(preg_match('/[0-9]{4}-[0,1][0-9]-[0-5][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]Z/', $expireDate)){
$this->_expireDate = $expireDate;
}else{
throw new PallyConTokenException(1011);
Expand Down

0 comments on commit cbe904a

Please sign in to comment.