Skip to content

Commit 3bdf47e

Browse files
author
Bizley
authored
HTTPS everywhere (#19503)
1 parent 4ff5b7a commit 3bdf47e

File tree

536 files changed

+1225
-1225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+1225
-1225
lines changed

BaseYii.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii;
@@ -207,7 +207,7 @@ public static function getRootAlias($alias)
207207
* be removed. Trailing '/' and '\' characters will be trimmed. This can be
208208
*
209209
* - a directory or a file path (e.g. `/tmp`, `/tmp/main.txt`)
210-
* - a URL (e.g. `http://www.yiiframework.com`)
210+
* - a URL (e.g. `https://www.yiiframework.com`)
211211
* - a path alias (e.g. `@yii/base`). In this case, the path alias will be converted into the
212212
* actual path first by calling [[getAlias()]].
213213
*
@@ -262,7 +262,7 @@ public static function setAlias($alias, $path)
262262
* to include the file associated with the corresponding path alias
263263
* (e.g. `@yii/base/Component.php`);
264264
*
265-
* This autoloader allows loading classes that follow the [PSR-4 standard](http://www.php-fig.org/psr/psr-4/)
265+
* This autoloader allows loading classes that follow the [PSR-4 standard](https://www.php-fig.org/psr/psr-4/)
266266
* and have its top-level namespace or sub-namespaces defined as path aliases.
267267
*
268268
* Example: When aliases `@yii` and `@yii/bootstrap` are defined, classes in the `yii\bootstrap` namespace

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2624,14 +2624,14 @@ Yii Framework 2 Change Log
26242624
- Bug: `yii\helpers\Json::encode()`` did not handle objects that implement `JsonSerializable` interface correctly (cebe)
26252625
- Bug: Fixed issue with tabular input on `yii\widgets\ActiveField::radio()` and `yii\widgets\ActiveField::checkbox()` (jom)
26262626
- Bug: Fixed the issue that query cache returns the same data for the same SQL but different query methods (qiangxue)
2627-
- Bug: Fixed URL parsing so it's now properly giving 404 for URLs like `http://example.com//////site/about` (samdark)
2627+
- Bug: Fixed URL parsing so it's now properly giving 404 for URLs like `https://example.com//////site/about` (samdark)
26282628
- Bug: Fixed `yii\console\controllers\HelpController::getModuleCommands()` issue where it attempts to scan a module's controller directory when it doesn't exist (jom)
26292629
- Bug: Fixed an issue with FileHelper and not accessible directories which resulted in endless loop (cebe)
26302630
- Bug: Fixed `yii\base\Model::load()` returned `true` if `$data` and `formName` were empty (samdark)
26312631
- Bug: Fixed issue with `yii\db\ActiveRelationTrait` preventing `yii\db\ActiveQuery` from clearing events and behaviors on clone (jom)
26322632
- Bug: `yii\db\Query::queryScalar()` wasn't making `SELECT DISTINCT` queries subqueries (jom)
26332633
- Bug: Fixed use `$files` instead of `self::$_files[$key]` to allow inheritance (pgaultier)
2634-
- Enh #46: Added Image extension based on [Imagine library](http://imagine.readthedocs.org) (tonydspaniard)
2634+
- Enh #46: Added Image extension based on [Imagine library](https://imagine.readthedocs.io/) (tonydspaniard)
26352635
- Enh #364: Improve `yii\helpers\Inflector::slug()` with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
26362636
- Enh #497: Removed `yii\log\Target::logUser` and added `yii\log\Target::prefix` to support customizing message prefix (qiangxue)
26372637
- Enh #499: Decoupled `Rule` from RBAC `Item` (samdark, qiangxue)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For license information check the [LICENSE](LICENSE.md)-file.
1010
Installation
1111
------------
1212

13-
The preferred way to install the Yii framework is through [composer](http://getcomposer.org/download/).
13+
The preferred way to install the Yii framework is through [composer](https://getcomposer.org/download/).
1414

1515
Refer to [Bower and NPM Assets installation](https://www.yiiframework.com/doc/guide/2.0/en/structure-assets#bower-npm-assets) to select an asset installation method.
1616

UPGRADE.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Upgrading in general is as simple as updating your dependency in your composer.j
1212
running `composer update`. In a big application however there may be more things to consider,
1313
which are explained in the following.
1414

15-
> Note: This document assumes you have composer [installed globally](http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-composer)
15+
> Note: This document assumes you have composer [installed globally](https://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-composer)
1616
so that you can run the `composer` command. If you have a `composer.phar` file inside of your project you need to
1717
replace `composer` with `php composer.phar` in the following.
1818

@@ -465,7 +465,7 @@ Upgrade from Yii 2.0.13
465465
* `yii\db\QueryBuilder::conditionBuilders` property and method-based condition builders are no longer used.
466466
Class-based conditions and builders are introduced instead to provide more flexibility, extensibility and
467467
space to customization. In case you rely on that property or override any of default condition builders, follow the
468-
special [guide article](http://www.yiiframework.com/doc-2.0/guide-db-query-builder.html#adding-custom-conditions-and-expressions)
468+
special [guide article](https://www.yiiframework.com/doc-2.0/guide-db-query-builder.html#adding-custom-conditions-and-expressions)
469469
to update your code.
470470

471471
* Protected method `yii\db\ActiveQueryTrait::createModels()` does not apply indexes as defined in `indexBy` property anymore.
@@ -496,7 +496,7 @@ Upgrade from Yii 2.0.12
496496
was insecure as the header could have been set by a malicious client on a non-HTTPS connection.
497497
With 2.0.13 Yii adds support for configuring trusted proxies. If your application runs behind a reverse proxy and relies on
498498
`getIsSecureConnection()` to return the value form the `X-Forwarded-Proto` header you need to explicitly allow
499-
this in the Request configuration. See the [guide](http://www.yiiframework.com/doc-2.0/guide-runtime-requests.html#trusted-proxies) for more information.
499+
this in the Request configuration. See the [guide](https://www.yiiframework.com/doc-2.0/guide-runtime-requests.html#trusted-proxies) for more information.
500500

501501
This setting also affects you when Yii is running on IIS webserver, which sets the `X-Rewrite-Url` header.
502502
This header is now filtered by default and must be listed in trusted hosts to be detected by Yii:
@@ -689,7 +689,7 @@ Upgrade from Yii 2.0.6
689689
initialization to support wider range of allowed characters. Because of this change:
690690

691691
- You are required to flush your application cache to remove outdated `UrlRule` serialized objects.
692-
See the [Cache Flushing Guide](http://www.yiiframework.com/doc-2.0/guide-caching-data.html#cache-flushing)
692+
See the [Cache Flushing Guide](https://www.yiiframework.com/doc-2.0/guide-caching-data.html#cache-flushing)
693693
- If you implement `parseRequest()` or `createUrl()` and rely on parameter names, call `substitutePlaceholderNames()`
694694
in order to replace temporary IDs with parameter names after doing matching.
695695

@@ -765,7 +765,7 @@ If you've extended `yii\base\Security` to override any of the config constants y
765765
Upgrade from Yii 2.0.0
766766
----------------------
767767

768-
* Upgraded Twitter Bootstrap to [version 3.3.x](http://blog.getbootstrap.com/2014/10/29/bootstrap-3-3-0-released/).
768+
* Upgraded Twitter Bootstrap to [version 3.3.x](https://blog.getbootstrap.com/2014/10/29/bootstrap-3-3-0-released/).
769769
If you need to use an older version (i.e. stick with 3.2.x) you can specify that in your `composer.json` by
770770
adding the following line in the `require` section:
771771

Yii.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
require __DIR__ . '/BaseYii.php';

assets/yii.activeForm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*
44
* This is the JavaScript widget used by the yii\widgets\ActiveForm widget.
55
*
6-
* @link http://www.yiiframework.com/
6+
* @link https://www.yiiframework.com/
77
* @copyright Copyright (c) 2008 Yii Software LLC
8-
* @license http://www.yiiframework.com/license/
8+
* @license https://www.yiiframework.com/license/
99
* @author Qiang Xue <[email protected]>
1010
* @since 2.0
1111
*/

assets/yii.captcha.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*
44
* This is the JavaScript widget used by the yii\captcha\Captcha widget.
55
*
6-
* @link http://www.yiiframework.com/
6+
* @link https://www.yiiframework.com/
77
* @copyright Copyright (c) 2008 Yii Software LLC
8-
* @license http://www.yiiframework.com/license/
8+
* @license https://www.yiiframework.com/license/
99
* @author Qiang Xue <[email protected]>
1010
* @since 2.0
1111
*/

assets/yii.gridView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*
44
* This is the JavaScript widget used by the yii\grid\GridView widget.
55
*
6-
* @link http://www.yiiframework.com/
6+
* @link https://www.yiiframework.com/
77
* @copyright Copyright (c) 2008 Yii Software LLC
8-
* @license http://www.yiiframework.com/license/
8+
* @license https://www.yiiframework.com/license/
99
* @author Qiang Xue <[email protected]>
1010
* @since 2.0
1111
*/

assets/yii.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* Yii JavaScript module.
33
*
4-
* @link http://www.yiiframework.com/
4+
* @link https://www.yiiframework.com/
55
* @copyright Copyright (c) 2008 Yii Software LLC
6-
* @license http://www.yiiframework.com/license/
6+
* @license https://www.yiiframework.com/license/
77
* @author Qiang Xue <[email protected]>
88
* @since 2.0
99
*/
@@ -511,7 +511,7 @@ window.yii = (function ($) {
511511
return false;
512512
}
513513

514-
// http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
514+
// https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex/6969486#6969486
515515
function escapeRegExp(str) {
516516
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
517517
}

assets/yii.validation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*
44
* This JavaScript module provides the validation methods for the built-in validators.
55
*
6-
* @link http://www.yiiframework.com/
6+
* @link https://www.yiiframework.com/
77
* @copyright Copyright (c) 2008 Yii Software LLC
8-
* @license http://www.yiiframework.com/license/
8+
* @license https://www.yiiframework.com/license/
99
* @author Qiang Xue <[email protected]>
1010
* @since 2.0
1111
*/

base/Action.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/ActionEvent.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/ActionFilter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Application.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;
@@ -101,7 +101,7 @@ abstract class Application extends Module
101101
public $charset = 'UTF-8';
102102
/**
103103
* @var string the language that is meant to be used for end users. It is recommended that you
104-
* use [IETF language tags](http://en.wikipedia.org/wiki/IETF_language_tag). For example, `en` stands
104+
* use [IETF language tags](https://en.wikipedia.org/wiki/IETF_language_tag). For example, `en` stands
105105
* for English, while `en-US` stands for English (United States).
106106
* @see sourceLanguage
107107
*/

base/ArrayAccessTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Arrayable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/ArrayableTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/BaseObject.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Behavior.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/BootstrapInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Component.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Configurable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/Controller.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/DynamicContentAwareInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/DynamicContentAwareTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/DynamicModel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

base/ErrorException.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;
@@ -54,7 +54,7 @@ public function __construct($message = '', $code = 0, $severity = 1, $filename =
5454
$frame['function'] = 'unknown';
5555
}
5656

57-
// Xdebug < 2.1.1: http://bugs.xdebug.org/view.php?id=695
57+
// Xdebug < 2.1.1: https://bugs.xdebug.org/view.php?id=695
5858
if (!isset($frame['type']) || $frame['type'] === 'static') {
5959
$frame['type'] = '::';
6060
} elseif ($frame['type'] === 'dynamic') {

base/ErrorHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* @link http://www.yiiframework.com/
3+
* @link https://www.yiiframework.com/
44
* @copyright Copyright (c) 2008 Yii Software LLC
5-
* @license http://www.yiiframework.com/license/
5+
* @license https://www.yiiframework.com/license/
66
*/
77

88
namespace yii\base;

0 commit comments

Comments
 (0)