Skip to content

Commit

Permalink
HTTPS everywhere (#19503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizley committed Aug 3, 2022
1 parent 37ea399 commit 161526c
Show file tree
Hide file tree
Showing 1,219 changed files with 2,791 additions and 2,791 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
jquery: true
node: true

# http://eslint.org/docs/rules/
# https://eslint.org/docs/latest/rules/
rules:
# Possible Errors
comma-dangle: [2, never]
Expand Down
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ Contributing to Yii 2

- [Report an issue](../docs/internals/report-an-issue.md)
- [Translate documentation or messages](../docs/internals/translation-workflow.md)
- [Give us feedback or start a design discussion](http://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/)
- [Give us feedback or start a design discussion](https://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/)
- [Contribute to the core code or fix bugs](../docs/internals/git-workflow.md)
4 changes: 2 additions & 2 deletions build/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
/**
* build script file.
*
* @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/
*/

define('YII_DEBUG', true);
Expand Down
6 changes: 3 additions & 3 deletions build/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ rem
rem This is the bootstrap script for running build on Windows.
rem
rem @author Qiang Xue <qiang.xue@gmail.com>
rem @link http://www.yiiframework.com/
rem @link https://www.yiiframework.com/
rem @copyright 2008 Yii Software LLC
rem @license http://www.yiiframework.com/license/
rem @license https://www.yiiframework.com/license/
rem @version $Id$
rem -------------------------------------------------------------

Expand All @@ -20,4 +20,4 @@ if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe

%PHP_COMMAND% "%BUILD_PATH%build" %*

@endlocal
@endlocal
6 changes: 3 additions & 3 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* Phing build file for Yii 2.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/
-->
<project name="yii" basedir="." default="help">
Expand Down Expand Up @@ -241,7 +241,7 @@ Please update yiisite/common/data/versions.php file with the following code:
package="${phing.project.name}"
summary="Yii PHP Framework"
pkgdescription="Yii PHP Framework: Best for Web 2.0 Development"
notes="http://www.yiiframework.com/files/CHANGELOG-${yii.release}.txt"
notes="https://www.yiiframework.com/files/CHANGELOG-${yii.release}.txt"
license="BSD"
/>
<exec command="pear package" dir="${build.pear.src.dir}" passthru="true" />
Expand Down
8 changes: 4 additions & 4 deletions build/controllers/ClassmapController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down Expand Up @@ -73,9 +73,9 @@ public function actionCreate($root = null, $mapFile = null)
* This file is automatically generated by the "build classmap" command under the "build" folder.
* Do not modify it directly.
*
* @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/
*/
return [
Expand Down
4 changes: 2 additions & 2 deletions build/controllers/DevController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down
10 changes: 5 additions & 5 deletions build/controllers/MimeTypeController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand All @@ -16,7 +16,7 @@
* MimeTypeController generates a map of file extensions to MIME types.
*
* It uses `mime.types` file from apache http located under
* http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
* https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
*
* This file has been placed in the public domain for unlimited redistribution,
* so we can use it and ship it with Yii.
Expand Down Expand Up @@ -67,7 +67,7 @@ public function actionIndex($outFile = null, $aliasesOutFile = null)
}

$this->stdout('Downloading mime-type file from apache httpd repository...');
if ($apacheMimeTypesFileContent = file_get_contents('http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co')) {
if ($apacheMimeTypesFileContent = file_get_contents('https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co')) {
$this->stdout("Done.\n", Console::FG_GREEN);
$this->generateMimeTypesFile($outFile, $apacheMimeTypesFileContent);
$this->generateMimeAliasesFile($aliasesOutFile);
Expand Down Expand Up @@ -113,7 +113,7 @@ private function generateMimeTypesFile($outFile, $content)
* This file contains most commonly used MIME types
* according to file extension names.
* Its content is generated from the apache http mime.types file.
* http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
* https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=markup
* This file has been placed in the public domain for unlimited redistribution.
*/
return $array;
Expand Down
8 changes: 4 additions & 4 deletions build/controllers/PhpDocController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down Expand Up @@ -293,9 +293,9 @@ protected function fixFileDoc(&$lines)
$lines = array_merge([
'<?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/',
' */',
'',
$namespaceLine,
Expand Down
4 changes: 2 additions & 2 deletions build/controllers/ReleaseController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down
4 changes: 2 additions & 2 deletions build/controllers/TranslationController.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down
10 changes: 5 additions & 5 deletions build/controllers/Utf8Controller.php
Original file line number Diff line number Diff line change
@@ -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\build\controllers;
Expand Down Expand Up @@ -59,7 +59,7 @@ public function actionCheckGuide($directory = null)
continue;
}

// http://unicode-table.com/en/blocks/general-punctuation/
// https://unicode-table.com/en/blocks/general-punctuation/
if (0x2000 <= $ord && $ord <= 0x200F
|| 0x2028 <= $ord && $ord <= 0x202E
|| 0x205f <= $ord && $ord <= 0x206F
Expand Down Expand Up @@ -92,13 +92,13 @@ private function found($what, $char, $line, $pos, $file)
$hexcode = dechex($this->unicodeOrd($char));
$hexcode = str_repeat('0', max(4 - \strlen($hexcode), 0)) . $hexcode;

$this->stdout(" at $line:$pos FOUND $what: 0x$hexcode '$char' http://unicode-table.com/en/$hexcode/\n");
$this->stdout(" at $line:$pos FOUND $what: 0x$hexcode '$char' https://unicode-table.com/en/$hexcode/\n");
}

/**
* Equivalent for ord() just for unicode.
*
* http://stackoverflow.com/a/10333324/1106908
* https://stackoverflow.com/questions/10333098/utf-8-safe-equivalent-of-ord-or-charcodeat-in-php/10333324#10333324
*
* @param $c
* @return bool|int
Expand Down
2 changes: 1 addition & 1 deletion contrib/completion/bash/yii
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# See also:
# - https://debian-administration.org/article/317/An_introduction_to_bash_completion_part_2 on how this works.
# - https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html
# - http://www.yiiframework.com/doc-2.0/guide-tutorial-console.html#bash-completion
# - https://www.yiiframework.com/doc-2.0/guide-tutorial-console.html#bash-completion
#
# Usage:
# Temporarily you can source this file in you bash by typing: source yii
Expand Down
4 changes: 2 additions & 2 deletions cs/src/YiiConfig.php
Original file line number Diff line number Diff line change
@@ -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\cs;
Expand Down
8 changes: 4 additions & 4 deletions cs/src/YiisoftConfig.php
Original file line number Diff line number Diff line change
@@ -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\cs;
Expand All @@ -23,9 +23,9 @@ public function __construct()
parent::__construct('yiisoft-cs-config');

$header = <<<'HEADER'
@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/
HEADER;

$this->mergeRules([
Expand Down
4 changes: 2 additions & 2 deletions docs/guide-ar/start-databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ use yii\widgets\LinkPager;
</p>

```
http://hostname/index.php?r=country%2Findex
https://hostname/index.php?r=country%2Findex
```

![Country List](../guide/images/start-country-list.png)
Expand All @@ -266,7 +266,7 @@ http://hostname/index.php?r=country%2Findex
</p>

```
http://hostname/index.php?r=country%2Findex&page=2
https://hostname/index.php?r=country%2Findex&page=2
```

<p dir="rtl">
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ar/start-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ use yii\widgets\ActiveForm;
</p>

```
http://hostname/index.php?r=site%2Fentry
https://hostname/index.php?r=site%2Fentry
```

<p dir="rtl">
Expand Down
4 changes: 2 additions & 2 deletions docs/guide-ar/start-gii.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defined('YII_ENV') or define('YII_ENV', 'dev');
</p>

```
http://hostname/index.php?r=gii
https://hostname/index.php?r=gii
```

<blockquote class="note"><p dir="rtl">
Expand Down Expand Up @@ -127,7 +127,7 @@ http://hostname/index.php?r=gii
</p>

```
http://hostname/index.php?r=country%2Findex
https://hostname/index.php?r=country%2Findex
```

<p dir="rtl">
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ar/start-hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ use yii\helpers\Html;
</p>

```
http://hostname/index.php?r=site%2Fsay&message=Hello+World
https://hostname/index.php?r=site%2Fsay&message=Hello+World
```

![Hello World](../guide/images/start-hello-world.png)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide-ar/start-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ http://localhost:8080/

<p dir="rtl">
على ال production server، قد ترغب في إعداد خادم الويب الخاص بك بحيث يمكن الوصول إلى التطبيق
الخاص بك عبر ال URL التالي <code>http://www.example.com/index.php</code> بدلاً من <code>http://www.example.com/basic/web/index.php</code>. هذا الكلام يتطلب إنشاء إعداد يقوم بتوجيه ال document root الموجود على ال web server الى مجلد ال basic/web، كما قد ترغب أيضا بإخفاء ال <code>index.php</code> من ال URL كما هو موضح في ال <a href="../guide/runtime-routing.md">Routing and URL Creation</a>. في هذا الموضوع ستتعلم كيف يمكنك إعداد ال Apache أو ال Nginx server لتحقيق هذه الأهداف.
الخاص بك عبر ال URL التالي <code>https://www.example.com/index.php</code> بدلاً من <code>https://www.example.com/basic/web/index.php</code>. هذا الكلام يتطلب إنشاء إعداد يقوم بتوجيه ال document root الموجود على ال web server الى مجلد ال basic/web، كما قد ترغب أيضا بإخفاء ال <code>index.php</code> من ال URL كما هو موضح في ال <a href="../guide/runtime-routing.md">Routing and URL Creation</a>. في هذا الموضوع ستتعلم كيف يمكنك إعداد ال Apache أو ال Nginx server لتحقيق هذه الأهداف.
</p>

<blockquote class="info"><p dir="rtl">
Expand Down
6 changes: 3 additions & 3 deletions docs/guide-ar/start-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

<p dir="rtl">
بعد تثبيت ال Yii، سيكون لديك تطبيق Yii جاهز للعمل عليه ويمكن الوصول إليه عبر
الرابط التالي: <code>http://hostname/basic/web/index.php</code> أو <code>http://hostname/index.php</code> إعتمادا على الإعدادات
الرابط التالي: <code>https://hostname/basic/web/index.php</code> أو <code>https://hostname/index.php</code> إعتمادا على الإعدادات
الخاصة بك (إعدادت ال web server). في هذا الجزء سنستعرض الوظائف ال built-in الموجودة في التطبيق الإفتراضي لإطار العمل Yii، وكيف يقوم بتنظيم الشيفرة البرمجية، وكيف يعالج (handling) هذا التطبيق الطلبات (requests) بشكل عام.
</p>

<blockquote class="info"><p dir="rtl">
معلومة: من أجل تبسيط الطرح، ومن خلال هذا البرنامج التعليمي " Getting Started - البداية من هنا"، من المفترض أنك قمت بتعيين <code>basic/web</code> ك <code>document root</code> لل Web server، وقد قمت أيضا بإعداد ال Url الذي يسمح لك بالوصول الى التطبيق المثبت من خلاله ليكون على الشكل التالي: <code>http://hostname/index.php</code> أو ما شابه ذلك.
معلومة: من أجل تبسيط الطرح، ومن خلال هذا البرنامج التعليمي " Getting Started - البداية من هنا"، من المفترض أنك قمت بتعيين <code>basic/web</code> ك <code>document root</code> لل Web server، وقد قمت أيضا بإعداد ال Url الذي يسمح لك بالوصول الى التطبيق المثبت من خلاله ليكون على الشكل التالي: <code>https://hostname/index.php</code> أو ما شابه ذلك.
اذا لم تقم بذلك، ولتلبية إحتياجاتك في هذا البرنامج التعليمي، يرجى ضبط ال Url كما هو موضح في هذه الصفحة.
يمكنك معرفة الضبط الخاص بال Web server من هنا: <a href="start-installation.md">تثبيت ال Yii </a>
</p></blockquote>
Expand All @@ -24,7 +24,7 @@
</p>

<ul dir="rtl">
<li>الصفحة الرئيسية(Homepage): يتم عرض هذه الصفحة من خلال الرابط التالي <code>http://hostname/index.php</code> </li>
<li>الصفحة الرئيسية(Homepage): يتم عرض هذه الصفحة من خلال الرابط التالي <code>https://hostname/index.php</code> </li>
<li>صفحة من نحن(About)</li>
<li>صفحة اتصل بنا (Contact): في هذه الصفحة يتم عرض form يسمح للأعشاء بالإتصال بك من خلال البريد الإلكتروني.</li>
<li>صفحة تسجيل الدخول (Login): في هذه الصفحة يتم عرض form يسمح للأعضاء بالحصول على الإذن لإستخدام الخصائص التي لا يجوز لغيرهم من الوصول اليها، قم بتجربة تسجيل الدخول من خلال استخدام <code>admin/admin</code> ولاحظ أن كلمة "Login" ستختفي من القائمة الرئيسية وستظهر محلها الكلمة "Logout"</li>
Expand Down
6 changes: 3 additions & 3 deletions docs/guide-es/concept-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Para definir un alias puedes llamar a [[Yii::setAlias()]] para una determinada r
Yii::setAlias('@foo', '/path/to/foo');

// una alias de un URL
Yii::setAlias('@bar', 'http://www.example.com');
Yii::setAlias('@bar', 'https://www.example.com');
```

> Note: Una ruta de archivo o URL en alias NO debe necesariamente referirse a un archivo o recurso existente.
Expand All @@ -44,7 +44,7 @@ return [
// ...
'aliases' => [
'@foo' => '/path/to/foo',
'@bar' => 'http://www.example.com',
'@bar' => 'https://www.example.com',
],
];
```
Expand All @@ -58,7 +58,7 @@ además resolver un alias derivado en su correspondiente ruta de archivo o URL.

```php
echo Yii::getAlias('@foo'); // muestra: /path/to/foo
echo Yii::getAlias('@bar'); // muestra: http://www.example.com
echo Yii::getAlias('@bar'); // muestra: https://www.example.com
echo Yii::getAlias('@foo/bar/file.php'); // muestra: /path/to/foo/bar/file.php
```

Expand Down
4 changes: 2 additions & 2 deletions docs/guide-es/helper-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Si se quiere enlazar un estilo externo desde un archivo CSS:
genera

<!--[if IE 5]>
<link href="http://example.com/css/ie5.css" />
<link href="https://example.com/css/ie5.css" />
<![endif]-->
```

Expand Down Expand Up @@ -353,7 +353,7 @@ Para generar una etiqueta de tipo imagen se puede usar el siguiente ejemplo:

genera

<img src="http://example.com/images/logo.png" alt="My logo" />
<img src="https://example.com/images/logo.png" alt="My logo" />
```

Aparte de los [alias](concept-aliases.md) el primer argumento puede aceptar rutas, parámetros y URLs. Del mismo modo
Expand Down
Loading

0 comments on commit 161526c

Please sign in to comment.