diff --git a/README.md b/README.md
index a02d00c3..3d37e9e5 100644
--- a/README.md
+++ b/README.md
@@ -30,12 +30,12 @@
Email: webmaster at shishnet.org
-Issue/Bug tracker: http://github.com/shish/shimmie2/issues
+Issue/Bug tracker: https://github.com/shish/shimmie2/issues
# Licence
-All code is released under the [GNU GPL Version 2](http://www.gnu.org/licenses/gpl-2.0.html) unless mentioned otherwise.
+All code is released under the [GNU GPL Version 2](https://www.gnu.org/licenses/gpl-2.0.html) unless mentioned otherwise.
If you give shimmie to someone else, you have to give them the source (which
should be easy, as PHP is an interpreted language...). If you want to add
diff --git a/core/extension.php b/core/extension.php
index bfd9de59..e63fda12 100644
--- a/core/extension.php
+++ b/core/extension.php
@@ -7,7 +7,7 @@
* Also loads the theme object into $this->theme if available
*
* The original concept came from Artanis's Extension extension
- * --> http://github.com/Artanis/simple-extension/tree/master
+ * --> https://github.com/Artanis/simple-extension/tree/master
* Then re-implemented by Shish after he broke the forum and couldn't
* find the thread where the original was posted >_<
*/
@@ -115,7 +115,7 @@ abstract class ExtensionInfo
// Every credit you get costs us RAM. It stops now.
public const SHISH_NAME = "Shish";
public const SHISH_EMAIL = "webmaster@shishnet.org";
- public const SHIMMIE_URL = "http://code.shishnet.org/shimmie2/";
+ public const SHIMMIE_URL = "https://code.shishnet.org/shimmie2/";
public const SHISH_AUTHOR = [self::SHISH_NAME=>self::SHISH_EMAIL];
public const LICENSE_GPLV2 = "GPLv2";
diff --git a/core/install.php b/core/install.php
index 5fe80f06..6b117698 100644
--- a/core/install.php
+++ b/core/install.php
@@ -5,8 +5,8 @@
* @package Shimmie
* @copyright Copyright (c) 2007-2015, Shish et al.
* @author Shish [webmaster at shishnet.org], jgen [jeffgenovy at gmail.com]
- * @link http://code.shishnet.org/shimmie2/
- * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+ * @link https://code.shishnet.org/shimmie2/
+ * @license https://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
* Initialise the database, check that folder
* permissions are set properly.
diff --git a/core/polyfills.php b/core/polyfills.php
index 9c7b2edb..2102d7d0 100644
--- a/core/polyfills.php
+++ b/core/polyfills.php
@@ -27,7 +27,7 @@ function array_iunique(array $array): array
/**
* Figure out if an IP is in a specified range
*
- * from http://uk.php.net/network
+ * from https://uk.php.net/network
*/
function ip_in_range(string $IP, string $CIDR): bool
{
@@ -86,7 +86,7 @@ function deltree(string $f): void
/**
* Copy an entire file hierarchy
*
- * from a comment on http://uk.php.net/copy
+ * from a comment on https://uk.php.net/copy
*/
function full_copy(string $source, string $target): void
{
@@ -380,7 +380,7 @@ function zglob(string $pattern): array
/**
* Figure out the path to the shimmie install directory.
*
- * eg if shimmie is visible at http://foo.com/gallery, this
+ * eg if shimmie is visible at https://foo.com/gallery, this
* function should return /gallery
*
* PHP really, really sucks.
@@ -478,7 +478,7 @@ function bool_escape($input): bool
Sometimes, I don't like PHP -- this, is one of those times...
"a boolean FALSE is not considered a valid boolean value by this function."
Yay for Got'chas!
- http://php.net/manual/en/filter.filters.validate.php
+ https://php.net/manual/en/filter.filters.validate.php
*/
if (is_bool($input)) {
return $input;
diff --git a/core/send_event.php b/core/send_event.php
index 98a48462..469e514c 100644
--- a/core/send_event.php
+++ b/core/send_event.php
@@ -101,7 +101,7 @@ function send_event(Event $event): Event
if ($tracer_enabled) {
$_tracer->begin(get_class($event));
}
- // SHIT: http://bugs.php.net/bug.php?id=35106
+ // SHIT: https://bugs.php.net/bug.php?id=35106
$my_event_listeners = $_shm_event_listeners[get_class($event)];
ksort($my_event_listeners);
diff --git a/core/tests/urls.test.php b/core/tests/urls.test.php
index b6ff90f0..cec18284 100644
--- a/core/tests/urls.test.php
+++ b/core/tests/urls.test.php
@@ -35,8 +35,8 @@ class UrlsTest extends TestCase
// absolute
$this->assertEquals(
- "http://foo.com",
- make_http("http://foo.com")
+ "https://foo.com",
+ make_http("https://foo.com")
);
}
}
diff --git a/core/util.php b/core/util.php
index c2913047..b72048df 100644
--- a/core/util.php
+++ b/core/util.php
@@ -104,7 +104,7 @@ function get_memory_limit(): int
Get PHP's configured memory limit.
Note that this is set to -1 for NO memory limit.
- http://ca2.php.net/manual/en/ini.core.php#ini.memory-limit
+ https://ca2.php.net/manual/en/ini.core.php#ini.memory-limit
*/
$memory = parse_shorthand_int(ini_get("memory_limit"));
diff --git a/ext/bbcode/info.php b/ext/bbcode/info.php
index c0291a84..d01ac5b5 100644
--- a/ext/bbcode/info.php
+++ b/ext/bbcode/info.php
@@ -15,7 +15,7 @@ class BBCodeInfo extends ExtensionInfo
" Supported tags:
[i]italic[/i]
diff --git a/ext/bbcode/test.php b/ext/bbcode/test.php
index 60f2b65b..3e4256b4 100644
--- a/ext/bbcode/test.php
+++ b/ext/bbcode/test.php
@@ -67,12 +67,12 @@ class BBCodeTest extends ShimmiePHPUnitTestCase
public function testURL()
{
$this->assertEquals(
- $this->filter("[url]http://shishnet.org[/url]"),
- "http://shishnet.org"
+ $this->filter("[url]https://shishnet.org[/url]"),
+ "https://shishnet.org"
);
$this->assertEquals(
- $this->filter("[url=http://shishnet.org]ShishNet[/url]"),
- "ShishNet"
+ $this->filter("[url=https://shishnet.org]ShishNet[/url]"),
+ "ShishNet"
);
$this->assertEquals(
$this->filter("[url=javascript:alert(\"owned\")]click to fail[/url]"),
diff --git a/ext/blotter/info.php b/ext/blotter/info.php
index f5126e42..6adfd345 100644
--- a/ext/blotter/info.php
+++ b/ext/blotter/info.php
@@ -12,5 +12,5 @@ class BlotterInfo extends ExtensionInfo
public $description = "Displays brief updates about whatever you want on every page.
Colors and positioning can be configured to match your site's design.
-Development TODO at http://github.com/zshall/shimmie2/issues";
+Development TODO at https://github.com/zshall/shimmie2/issues";
}
diff --git a/ext/danbooru_api/main.php b/ext/danbooru_api/main.php
index d85319da..4eadd66c 100644
--- a/ext/danbooru_api/main.php
+++ b/ext/danbooru_api/main.php
@@ -22,8 +22,8 @@ class DanbooruApi extends Extension
// Hackery for danbooruup 0.3.2 providing the wrong view url. This simply redirects to the proper
// Shimmie view page
- // Example: danbooruup says the url is http://shimmie/api/danbooru/post/show/123
- // This redirects that to http://shimmie/post/view/123
+ // Example: danbooruup says the url is https://shimmie/api/danbooru/post/show/123
+ // This redirects that to https://shimmie/post/view/123
elseif ($event->page_matches("api/danbooru/post/show")) {
$fixedlocation = make_link("post/view/" . $event->get_arg(0));
$page->set_mode(PageMode::REDIRECT);
diff --git a/ext/handle_video/theme.php b/ext/handle_video/theme.php
index e69c3555..24619e0c 100644
--- a/ext/handle_video/theme.php
+++ b/ext/handle_video/theme.php
@@ -20,7 +20,7 @@ class VideoFileHandlerTheme extends Themelet
if (array_key_exists($ext, $supportedExts)) {
//FLV isn't supported by