diff --git a/admin/src/js/pagedown.js b/admin/src/js/pagedown.js index d1e22a34..aab4f834 100644 --- a/admin/src/js/pagedown.js +++ b/admin/src/js/pagedown.js @@ -1700,8 +1700,8 @@ else // The default text that appears in the dialog input box when entering // links. - var imageDefaultText = "http://"; - var linkDefaultText = "http://"; + var imageDefaultText = "https://"; + var linkDefaultText = "https://"; // ------------------------------------------------------------------- // END OF YOUR CHANGES diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 7dcddc73..02937782 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -168,7 +168,7 @@ namespace Typecho { class Common { /** 程序版本 */ - public const VERSION = '1.2.0'; + public const VERSION = '1.2.1'; /** * 将路径转化为链接 diff --git a/var/Widget/Ajax.php b/var/Widget/Ajax.php index 1b3b1d6a..ab064398 100644 --- a/var/Widget/Ajax.php +++ b/var/Widget/Ajax.php @@ -47,7 +47,7 @@ class Ajax extends BaseOptions implements ActionInterface $result = ['available' => 0]; try { - $client->send('http://typecho.org/version.json'); + $client->send('https://typecho.org/version.json'); /** 匹配内容体 */ $response = $client->getResponseBody(); @@ -65,7 +65,7 @@ class Ajax extends BaseOptions implements ActionInterface 'available' => 1, 'latest' => $json['release'], 'current' => $version, - 'link' => 'http://typecho.org/download' + 'link' => 'https://typecho.org/download' ]; } } @@ -92,7 +92,7 @@ class Ajax extends BaseOptions implements ActionInterface if ($client) { $client->setHeader('User-Agent', $this->options->generator) ->setTimeout(10) - ->send('http://typecho.org/feed/'); + ->send('https://typecho.org/feed/'); /** 匹配内容体 */ $response = $client->getResponseBody();