From c28c048bf4808b6baf6c8796dd0b4ee00c5a42b4 Mon Sep 17 00:00:00 2001
From: Jonas L
Date: Thu, 25 Aug 2022 16:25:54 +0200
Subject: [PATCH] chore: use https links (#2075)
---
legacy/application/common/FileIO.php | 4 ++--
legacy/application/common/LocaleHelper.php | 6 +++---
legacy/application/common/OsPath.php | 4 ++--
legacy/application/configs/config-check.php | 2 +-
legacy/application/configs/constants.php | 14 +++++++-------
.../application/controllers/LocaleController.php | 2 +-
.../application/controllers/plugins/Acl_plugin.php | 2 +-
legacy/application/logging/AirtimeLog.php | 4 ++--
legacy/application/models/Block.php | 2 +-
legacy/application/models/Playlist.php | 2 +-
legacy/application/models/Preference.php | 2 +-
legacy/application/models/ServiceRegister.php | 2 +-
legacy/application/models/StoredFile.php | 4 ++--
legacy/application/models/Subjects.php | 2 +-
legacy/application/models/Webstream.php | 2 +-
.../rest/controllers/ShowImageController.php | 2 +-
.../application/modules/rest/helpers/RestAuth.php | 2 +-
legacy/application/services/PodcastService.php | 2 +-
shared/setup.py | 2 +-
19 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/legacy/application/common/FileIO.php b/legacy/application/common/FileIO.php
index 95daa46fa..2dc220665 100644
--- a/legacy/application/common/FileIO.php
+++ b/legacy/application/common/FileIO.php
@@ -15,7 +15,7 @@ class Application_Common_FileIO
* @param int $size - the file size, in bytes
*
* @see https://groups.google.com/d/msg/jplayer/nSM2UmnSKKA/Hu76jDZS4xcJ
- * @see http://php.net/manual/en/function.readfile.php#86244
+ * @see https://php.net/manual/en/function.readfile.php#86244
*/
public static function smartReadFile($filePath, $size, $mimeType)
{
@@ -69,7 +69,7 @@ class Application_Common_FileIO
// We can have multiple levels of output buffering. Need to
// keep looping until all have been disabled!!!
- // http://www.php.net/manual/en/function.ob-end-flush.php
+ // https://www.php.net/manual/en/function.ob-end-flush.php
while (ob_get_level() > 0) {
ob_end_flush();
}
diff --git a/legacy/application/common/LocaleHelper.php b/legacy/application/common/LocaleHelper.php
index 327925c4a..28049ba33 100644
--- a/legacy/application/common/LocaleHelper.php
+++ b/legacy/application/common/LocaleHelper.php
@@ -12,12 +12,12 @@ class Application_Common_LocaleHelper
public static function getISO6391LanguageCodes()
{
/*
- * From: http://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/
+ * From: https://www.binarytides.com/php-array-of-iso-639-1-language-codes-and-names/
*
* ISO 639-1 Language Codes
* References :
- * 1. http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- * 2. http://blog.xoundboy.com/?p=235
+ * 1. https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
+ * 2. https://blog.xoundboy.com/?p=235
*/
return [
'en' => _('English'),
diff --git a/legacy/application/common/OsPath.php b/legacy/application/common/OsPath.php
index bf03f22cf..655989804 100644
--- a/legacy/application/common/OsPath.php
+++ b/legacy/application/common/OsPath.php
@@ -2,7 +2,7 @@
class Application_Common_OsPath
{
- // this function is from http://stackoverflow.com/questions/2670299/is-there-a-php-equivalent-function-to-the-python-os-path-normpath
+ // this function is from https://stackoverflow.com/questions/2670299/is-there-a-php-equivalent-function-to-the-python-os-path-normpath
public static function normpath($path)
{
if (empty($path)) {
@@ -52,7 +52,7 @@ class Application_Common_OsPath
}
/* Similar to the os.path.join python method
- * http://stackoverflow.com/a/1782990/276949 */
+ * https://stackoverflow.com/a/1782990/276949 */
public static function join()
{
$args = func_get_args();
diff --git a/legacy/application/configs/config-check.php b/legacy/application/configs/config-check.php
index 2841064e2..4565d9d5a 100644
--- a/legacy/application/configs/config-check.php
+++ b/legacy/application/configs/config-check.php
@@ -65,7 +65,7 @@ $result = $r1 && $r2;
still experiencing issues, read the
release notes,
come visit our discourse
- or, check the website and main docs.
+ or, check the website and main docs.
_('Disabled'),
'Cancel upload' => _('Cancel upload'),
'Type' => _('Type'),
- "Autoloading playlists' contents are added to shows one hour before the show airs. More information" => _("Autoloading playlists' contents are added to shows one hour before the show airs. More information"),
+ "Autoloading playlists' contents are added to shows one hour before the show airs. More information" => _("Autoloading playlists' contents are added to shows one hour before the show airs. More information"),
'Podcast settings saved' => _('Podcast settings saved'),
'Are you sure you want to delete this user?' => _('Are you sure you want to delete this user?'),
"Can't delete yourself!" => _("Can't delete yourself!"),
diff --git a/legacy/application/controllers/plugins/Acl_plugin.php b/legacy/application/controllers/plugins/Acl_plugin.php
index 0aa488c96..5bbc21d58 100644
--- a/legacy/application/controllers/plugins/Acl_plugin.php
+++ b/legacy/application/controllers/plugins/Acl_plugin.php
@@ -263,7 +263,7 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
private function verifyAPIKey()
{
// The API key is passed in via HTTP "basic authentication":
- // http://en.wikipedia.org/wiki/Basic_access_authentication
+ // https://en.wikipedia.org/wiki/Basic_access_authentication
$CC_CONFIG = Config::getConfig();
// Decode the API key that was passed to us in the HTTP request.
diff --git a/legacy/application/logging/AirtimeLog.php b/legacy/application/logging/AirtimeLog.php
index 3c3094a49..5759936b8 100644
--- a/legacy/application/logging/AirtimeLog.php
+++ b/legacy/application/logging/AirtimeLog.php
@@ -25,7 +25,7 @@ class Airtime_Zend_Log extends Zend_Log
/**
* Error Handler will convert error into log message, and then call the original error handler.
*
- * @see http://www.php.net/manual/en/function.set-error-handler.php Custom error handler
+ * @see https://www.php.net/manual/en/function.set-error-handler.php Custom error handler
*
* @param int $errno
* @param string $errstr
@@ -66,7 +66,7 @@ class Airtime_Zend_Log extends Zend_Log
* E_DEPRECATED, E_STRICT, E_USER_DEPRECATED => DEBUG
* (unknown/other) => INFO
*
- * @see http://www.php.net/manual/en/function.set-error-handler.php Custom error handler
+ * @see https://www.php.net/manual/en/function.set-error-handler.php Custom error handler
*
* @return Zend_Log
*/
diff --git a/legacy/application/models/Block.php b/legacy/application/models/Block.php
index de85b7b49..f4003ca03 100644
--- a/legacy/application/models/Block.php
+++ b/legacy/application/models/Block.php
@@ -2,7 +2,7 @@
/**
* @copyright 2010 Sourcefabric O.P.S.
- * @license http://www.gnu.org/licenses/gpl.txt
+ * @license https://www.gnu.org/licenses/gpl.txt
*/
class Application_Model_Block implements Application_Model_LibraryEditable
{
diff --git a/legacy/application/models/Playlist.php b/legacy/application/models/Playlist.php
index d861302d1..66f6ccfab 100644
--- a/legacy/application/models/Playlist.php
+++ b/legacy/application/models/Playlist.php
@@ -2,7 +2,7 @@
/**
* @copyright 2010 Sourcefabric O.P.S.
- * @license http://www.gnu.org/licenses/gpl.txt
+ * @license https://www.gnu.org/licenses/gpl.txt
*/
class Application_Model_Playlist implements Application_Model_LibraryEditable
{
diff --git a/legacy/application/models/Preference.php b/legacy/application/models/Preference.php
index d9d0cd25f..1ddc8713e 100644
--- a/legacy/application/models/Preference.php
+++ b/legacy/application/models/Preference.php
@@ -117,7 +117,7 @@ class Application_Model_Preference
* Given a PDO connection, lock the cc_pref table for the current transaction.
*
* Creates a table level lock, which defaults to ACCESS EXCLUSIVE mode;
- * see http://www.postgresql.org/docs/9.1/static/explicit-locking.html
+ * see https://www.postgresql.org/docs/9.1/static/explicit-locking.html
*
* @param PDO $con
*/
diff --git a/legacy/application/models/ServiceRegister.php b/legacy/application/models/ServiceRegister.php
index a25dbff4f..7c01a464d 100644
--- a/legacy/application/models/ServiceRegister.php
+++ b/legacy/application/models/ServiceRegister.php
@@ -29,7 +29,7 @@ class Application_Model_ServiceRegister
// Need to convert ipv6 to ipv4 since Monit server does not appear
// to allow access via an ipv6 address.
// http://[::1]:2812 does not respond.
- // Bug: http://savannah.nongnu.org/bugs/?27608
+ // Bug: https://savannah.nongnu.org/bugs/?27608
if ($p_ipAddress == '::1') {
$p_ipAddress = '127.0.0.1';
}
diff --git a/legacy/application/models/StoredFile.php b/legacy/application/models/StoredFile.php
index 479afa223..dc67aedbc 100644
--- a/legacy/application/models/StoredFile.php
+++ b/legacy/application/models/StoredFile.php
@@ -4,7 +4,7 @@
* Application_Model_StoredFile class.
*
* @copyright 2010 Sourcefabric O.P.S.
- * @license http://www.gnu.org/licenses/gpl.txt
+ * @license https://www.gnu.org/licenses/gpl.txt
*
* @see MetaData
*/
@@ -521,7 +521,7 @@ SQL;
/**
* Sometimes we want a relative URL and not a full URL. See bug
- * http://dev.sourcefabric.org/browse/CC-2403.
+ * https://dev.sourcefabric.org/browse/CC-2403.
*
* @param mixed $baseUrl
*/
diff --git a/legacy/application/models/Subjects.php b/legacy/application/models/Subjects.php
index 94c559302..9228a4ee8 100644
--- a/legacy/application/models/Subjects.php
+++ b/legacy/application/models/Subjects.php
@@ -8,7 +8,7 @@
* (allow adding users to groups or groups to groups)
*
* @copyright 2010 Sourcefabric O.P.S.
- * @license http://www.gnu.org/licenses/gpl.txt
+ * @license https://www.gnu.org/licenses/gpl.txt
*/
class Application_Model_Subjects
{
diff --git a/legacy/application/models/Webstream.php b/legacy/application/models/Webstream.php
index 47c368dc3..755744773 100644
--- a/legacy/application/models/Webstream.php
+++ b/legacy/application/models/Webstream.php
@@ -344,7 +344,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
* 0 => "HTTP/1.1 302 Moved Temporarily",
* 1 => "X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Sun Microsystems Inc./1.6)",
* 2 => "Server: GlassFish Server Open Source Edition 3.1.1",
- * 3 => "Location: http://3043.live.streamtheworld.com:80/SAM04AAC89_SC",
+ * 3 => "Location: https://3043.live.streamtheworld.com:80/SAM04AAC89_SC",
* 4 => "Content-Type: text/html;charset=ISO-8859-1",
* 5 => "Content-Language: en-US",
* 6 => "Content-Length: 202",
diff --git a/legacy/application/modules/rest/controllers/ShowImageController.php b/legacy/application/modules/rest/controllers/ShowImageController.php
index 53ec2249b..dc99126b3 100644
--- a/legacy/application/modules/rest/controllers/ShowImageController.php
+++ b/legacy/application/modules/rest/controllers/ShowImageController.php
@@ -289,7 +289,7 @@ class Rest_ShowImageController extends Zend_Rest_Controller
return self::delTree($importedStorageDirectory);
}
- // from a note @ http://php.net/manual/en/function.rmdir.php
+ // from a note @ https://php.net/manual/en/function.rmdir.php
private static function delTree($dir)
{
$files = array_diff(scandir($dir), ['.', '..']);
diff --git a/legacy/application/modules/rest/helpers/RestAuth.php b/legacy/application/modules/rest/helpers/RestAuth.php
index c27729819..a8ff410ad 100644
--- a/legacy/application/modules/rest/helpers/RestAuth.php
+++ b/legacy/application/modules/rest/helpers/RestAuth.php
@@ -53,7 +53,7 @@ class RestAuth
private static function verifyAPIKey($action)
{
// The API key is passed in via HTTP "basic authentication":
- // http://en.wikipedia.org/wiki/Basic_access_authentication
+ // https://en.wikipedia.org/wiki/Basic_access_authentication
$CC_CONFIG = Config::getConfig();
// Decode the API key that was passed to us in the HTTP request.
diff --git a/legacy/application/services/PodcastService.php b/legacy/application/services/PodcastService.php
index 6b92f2713..a14bdf063 100644
--- a/legacy/application/services/PodcastService.php
+++ b/legacy/application/services/PodcastService.php
@@ -496,7 +496,7 @@ class Application_Service_PodcastService
$enclosure->addAttribute('type', $publishedFile->getDbMime());
// itunes:subtitle
- // From http://www.apple.com/ca/itunes/podcasts/specs.html#subtitle :
+ // From https://www.apple.com/ca/itunes/podcasts/specs.html#subtitle :
// 'The contents of the tag are displayed in the Description column in iTunes.'
// self::addEscapedChild($item, "xmlns:itunes:subtitle", $publishedFile->getDbTrackTitle());
self::addEscapedChild($item, 'xmlns:itunes:subtitle', $publishedFile->getDbDescription());
diff --git a/shared/setup.py b/shared/setup.py
index 64ff6880e..bf21f88f5 100644
--- a/shared/setup.py
+++ b/shared/setup.py
@@ -4,7 +4,7 @@ setup(
name="libretime-shared",
version="1.0.0",
description="LibreTime Shared",
- url="http://github.com/libretime/libretime",
+ url="https://github.com/libretime/libretime",
author="LibreTime Contributors",
license="AGPLv3",
packages=find_packages(exclude=["*tests*", "*fixtures*"]),