From 12355993dfc7471fb4a2d1995414fbb8197ddbee Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Sun, 29 Oct 2023 11:14:11 -0300 Subject: [PATCH] Update --- install/test.php | 1 + objects/Login.php | 1 + objects/include_config.php | 1 + 3 files changed, 3 insertions(+) diff --git a/install/test.php b/install/test.php index b96418c53..e58e82cb5 100644 --- a/install/test.php +++ b/install/test.php @@ -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']); diff --git a/objects/Login.php b/objects/Login.php index c6e556f98..2621ec648 100644 --- a/objects/Login.php +++ b/objects/Login.php @@ -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(); diff --git a/objects/include_config.php b/objects/include_config.php index 6d39edae5..b3ade5ffe 100644 --- a/objects/include_config.php +++ b/objects/include_config.php @@ -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']; }