Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 29, 2023
1 parent cd373e5 commit 1235599
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions install/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$_POST['pass'] = '123';
//$_POST['inputAutoHLS'] = true;
$_POST['notifyURL'] = str_replace("Encoder/", "", $global['webSiteRootURL']);
$_POST['notifyURL'] = str_ireplace(array('rtmp://'), array(''), $_POST['notifyURL']);
foreach ($filesURL as $value) {
$_POST['fileURI'] = $value;
$path_parts = pathinfo($_POST['fileURI']);
Expand Down
1 change: 1 addition & 0 deletions objects/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ static function run(
$encodedPass = false
) {
global $_runLogin;
$aVideoURL = str_ireplace(array('rtmp://'), array(''), $aVideoURL);
$index = "$user, $pass, $aVideoURL";
if (!isset($_runLogin)) {
$_runLogin = array();
Expand Down
1 change: 1 addition & 0 deletions objects/include_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

if (!empty($_REQUEST['notifyURL']) && !preg_match('/^http/i', $_REQUEST['notifyURL'])) {
$_REQUEST['notifyURL'] = "https://{$_REQUEST['notifyURL']}";
$_REQUEST['notifyURL'] = str_ireplace(array('rtmp://'), array(''), "https://{$_REQUEST['notifyURL']}");
$_POST['notifyURL'] = $_REQUEST['notifyURL'];
$_GET['notifyURL'] = $_REQUEST['notifyURL'];
}
Expand Down

0 comments on commit 1235599

Please sign in to comment.