mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
HTTPS everywhere (#19503)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @link http://www.yiiframework.com/
|
||||
* @link https://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
* @license http://www.yiiframework.com/license/
|
||||
* @license https://www.yiiframework.com/license/
|
||||
*/
|
||||
|
||||
namespace yii\web;
|
||||
@ -238,7 +238,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
}
|
||||
|
||||
$page = $this->htmlEncode(strtolower(str_replace('\\', '-', $class)));
|
||||
$url = "http://www.yiiframework.com/doc-2.0/$page.html";
|
||||
$url = "https://www.yiiframework.com/doc-2.0/$page.html";
|
||||
if ($method) {
|
||||
$url .= "#$method()-detail";
|
||||
}
|
||||
@ -385,7 +385,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
*/
|
||||
public function createHttpStatusLink($statusCode, $statusDescription)
|
||||
{
|
||||
return '<a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#' . (int) $statusCode . '" target="_blank">HTTP ' . (int) $statusCode . ' – ' . $statusDescription . '</a>';
|
||||
return '<a href="https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#' . (int) $statusCode . '" target="_blank">HTTP ' . (int) $statusCode . ' – ' . $statusDescription . '</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
@ -396,11 +396,11 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
public function createServerInformationLink()
|
||||
{
|
||||
$serverUrls = [
|
||||
'http://httpd.apache.org/' => ['apache'],
|
||||
'http://nginx.org/' => ['nginx'],
|
||||
'http://lighttpd.net/' => ['lighttpd'],
|
||||
'https://httpd.apache.org/' => ['apache'],
|
||||
'https://nginx.org/' => ['nginx'],
|
||||
'https://www.lighttpd.net/' => ['lighttpd'],
|
||||
'http://gwan.com/' => ['g-wan', 'gwan'],
|
||||
'http://iis.net/' => ['iis', 'services'],
|
||||
'https://www.iis.net/' => ['iis', 'services'],
|
||||
'https://www.php.net/manual/en/features.commandline.webserver.php' => ['development'],
|
||||
];
|
||||
if (isset($_SERVER['SERVER_SOFTWARE'])) {
|
||||
@ -423,7 +423,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
*/
|
||||
public function createFrameworkVersionLink()
|
||||
{
|
||||
return '<a href="http://github.com/yiisoft/yii2/" target="_blank">' . $this->htmlEncode(Yii::getVersion()) . '</a>';
|
||||
return '<a href="https://github.com/yiisoft/yii2/" target="_blank">' . $this->htmlEncode(Yii::getVersion()) . '</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user