Skip to content

Use HTTPS links when possible #18205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions components/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ class to generate absolute URLs for their assets::
// ...

$urlPackage = new UrlPackage(
'http://static.example.com/images/',
'https://static.example.com/images/',
new StaticVersionStrategy('v1')
);

echo $urlPackage->getUrl('/logo.png');
// result: http://static.example.com/images/logo.png?v1
// result: https://static.example.com/images/logo.png?v1

You can also pass a schema-agnostic URL::

Expand All @@ -326,15 +326,15 @@ constructor::
// ...

$urls = [
'//static1.example.com/images/',
'//static2.example.com/images/',
'https://static1.example.com/images/',
'https://static2.example.com/images/',
];
$urlPackage = new UrlPackage($urls, new StaticVersionStrategy('v1'));

echo $urlPackage->getUrl('/logo.png');
// result: http://static1.example.com/images/logo.png?v1
// result: https://static1.example.com/images/logo.png?v1
echo $urlPackage->getUrl('/icon.png');
// result: http://static2.example.com/images/icon.png?v1
// result: https://static2.example.com/images/icon.png?v1

For each asset, one of the URLs will be randomly used. But, the selection
is deterministic, meaning that each asset will always be served by the same
Expand Down Expand Up @@ -384,7 +384,7 @@ they all have different base paths::
$defaultPackage = new Package($versionStrategy);

$namedPackages = [
'img' => new UrlPackage('http://img.example.com/', $versionStrategy),
'img' => new UrlPackage('https://img.example.com/', $versionStrategy),
'doc' => new PathPackage('/somewhere/deep/for/documents', $versionStrategy),
];

Expand All @@ -400,7 +400,7 @@ document inside a template::
// result: /main.css?v1

echo $packages->getUrl('/logo.png', 'img');
// result: http://img.example.com/logo.png?v1
// result: https://img.example.com/logo.png?v1

echo $packages->getUrl('resume.pdf', 'doc');
// result: /somewhere/deep/for/documents/resume.pdf?v1
Expand Down
2 changes: 1 addition & 1 deletion components/intl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Learn more
/reference/forms/types/timezone

.. _install the intl extension: https://www.php.net/manual/en/intl.setup.php
.. _ICU library: http://site.icu-project.org/
.. _ICU library: https://icu.unicode.org/
.. _`Unicode ISO 15924 Registry`: https://www.unicode.org/iso15924/iso15924-codes.html
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
.. _`ISO 3166-1 alpha-3`: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
Expand Down
8 changes: 4 additions & 4 deletions components/phpunit_bridge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ to register a new `test listener`_ called ``SymfonyTestsListener``:

.. code-block:: xml

<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
>
Expand Down Expand Up @@ -199,7 +199,7 @@ message, enclosed with ``/``. For example, with:

.. code-block:: xml

<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
>
Expand Down Expand Up @@ -828,7 +828,7 @@ namespaces in the ``phpunit.xml`` file, as done for example in the

.. code-block:: xml

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<!-- https://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.1/phpunit.xsd"
>
Expand Down Expand Up @@ -1019,7 +1019,7 @@ Add the following configuration to the ``phpunit.xml.dist`` file:

.. code-block:: xml

<!-- http://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<!-- https://phpunit.de/manual/6.0/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
>
Expand Down
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ Learn more
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8
.. _`options with libxml`: https://www.php.net/manual/en/libxml.constants.php
.. _`DOM XML_* constants`: https://www.php.net/manual/en/dom.constants.php
.. _JSON: http://www.json.org/
.. _JSON: https://www.json.org/json-en.html
.. _XML: https://www.w3.org/XML/
.. _YAML: https://yaml.org/
.. _CSV: https://tools.ietf.org/html/rfc4180
Expand Down
4 changes: 2 additions & 2 deletions components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ to create each type of UUID::
$uuid = Uuid::v3(Uuid::NAMESPACE_OID, $name); // same as: Uuid::v3('oid', $name);
$uuid = Uuid::v3(Uuid::NAMESPACE_X500, $name); // same as: Uuid::v3('x500', $name);

// UUID type 6 is not part of the UUID standard. It's lexicographically sortable
// UUID type 6 is not yet part of the UUID standard. It's lexicographically sortable
// (like ULIDs) and contains a 60-bit timestamp and 63 extra unique bits.
// It's defined in http://gh.peabody.io/uuidv6/
// It's defined in https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-6
$uuid = Uuid::v6(); // $uuid is an instance of Symfony\Component\Uid\UuidV6

.. versionadded:: 5.3
Expand Down
4 changes: 2 additions & 2 deletions deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ Learn More

.. _`Capifony`: https://github.com/everzet/capifony
.. _`Capistrano`: https://capistranorb.com/
.. _`Fabric`: http://www.fabfile.org/
.. _`Fabric`: https://www.fabfile.org/
.. _`Ansistrano`: https://ansistrano.com/
.. _`Magallanes`: https://github.com/andres-montanez/Magallanes
.. _`Memcached`: http://memcached.org/
.. _`Memcached`: https://memcached.org/
.. _`Redis`: https://redis.io/
.. _`Symfony plugin`: https://github.com/capistrano/symfony/
.. _`Deployer`: https://deployer.org/
Expand Down
2 changes: 1 addition & 1 deletion deployment/proxies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ handling the request::
.. _`CloudFront`: https://en.wikipedia.org/wiki/Amazon_CloudFront
.. _`CloudFront IP ranges`: https://ip-ranges.amazonaws.com/ip-ranges.json
.. _`HTTP Host header attacks`: https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
.. _`nginx realip module`: http://nginx.org/en/docs/http/ngx_http_realip_module.html
.. _`nginx realip module`: https://nginx.org/en/docs/http/ngx_http_realip_module.html
2 changes: 1 addition & 1 deletion http_cache/esi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ The ``render_esi`` helper supports two other useful options:
of ``continue`` indicating that, in the event of a failure, the gateway cache
will remove the ESI tag silently.

.. _`ESI`: http://www.w3.org/TR/esi-lang
.. _`ESI`: https://www.w3.org/TR/esi-lang/
4 changes: 2 additions & 2 deletions http_cache/varnish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ proxy before it has expired, it adds complexity to your caching setup.
Varnish and other reverse proxies for cache invalidation.

.. _`Varnish`: https://varnish-cache.org/
.. _`Edge Architecture`: http://www.w3.org/TR/edge-arch
.. _`Edge Architecture`: https://www.w3.org/TR/edge-arch
.. _`clean the cookies header`: https://varnish-cache.org/docs/7.0/reference/vmod_cookie.html
.. _`Surrogate-Capability Header`: http://www.w3.org/TR/edge-arch
.. _`Surrogate-Capability Header`: https://www.w3.org/TR/edge-arch
.. _`cache invalidation`: https://tools.ietf.org/html/rfc2616#section-13.10
.. _`FOSHttpCacheBundle`: https://foshttpcachebundle.readthedocs.io/en/latest/features/user-context.html
.. _`default.vcl`: https://github.com/varnishcache/varnish-cache/blob/3.0/bin/varnishd/default.vcl
Expand Down
4 changes: 2 additions & 2 deletions introduction/http_fundamentals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ Here's what we've learned so far:

.. _`xkcd`: https://xkcd.com/
.. _`XMLHttpRequest`: https://en.wikipedia.org/wiki/XMLHttpRequest
.. _`HTTP 1.1 RFC`: http://www.w3.org/Protocols/rfc2616/rfc2616.html
.. _`HTTP Bis`: http://datatracker.ietf.org/wg/httpbis/
.. _`HTTP 1.1 RFC`: https://www.w3.org/Protocols/rfc2616/rfc2616.html
.. _`HTTP Bis`: https://datatracker.ietf.org/wg/httpbis/
.. _`List of HTTP header fields`: https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
.. _`list of HTTP status codes`: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
.. _`List of common media types`: https://www.iana.org/assignments/media-types/media-types.xhtml
2 changes: 1 addition & 1 deletion reference/constraints/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,5 +390,5 @@ The message that is displayed if the uploaded file is only partially uploaded.

This message has no parameters.

.. _`IANA website`: http://www.iana.org/assignments/media-types/media-types.xhtml
.. _`IANA website`: https://www.iana.org/assignments/media-types/media-types.xhtml
.. _`Wikipedia: Binary prefix`: https://en.wikipedia.org/wiki/Binary_prefix
2 changes: 1 addition & 1 deletion reference/constraints/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -557,5 +557,5 @@ options has been set.

This message has no parameters.

.. _`IANA website`: http://www.iana.org/assignments/media-types/media-types.xhtml
.. _`IANA website`: https://www.iana.org/assignments/media-types/media-types.xhtml
.. _`PHP GD extension`: https://www.php.net/manual/en/book.image.php
4 changes: 2 additions & 2 deletions reference/formats/message_format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
// "9 988 776,65 €"
echo $translator->trans('value_of_object', ['value' => 9988776.65]);

.. _`online editor`: http://format-message.github.io/icu-message-format-for-translators/
.. _`online editor`: https://format-message.github.io/icu-message-format-for-translators/
.. _`ICU MessageFormat`: https://unicode-org.github.io/icu/userguide/format_parse/messages/
.. _`switch statement`: https://www.php.net/control-structures.switch
.. _`Language Plural Rules`: http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
.. _`Language Plural Rules`: https://www.unicode.org/cldr/charts/43/supplemental/language_plural_rules.html
.. _`constants defined by the IntlDateFormatter class`: https://www.php.net/manual/en/class.intldateformatter.php
2 changes: 1 addition & 1 deletion reference/formats/xliff.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ loaded/dumped inside a Symfony application:
</file>
</xliff>

.. _XLIFF: http://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html
.. _XLIFF: https://docs.oasis-open.org/xliff/xliff-core/v2.1/xliff-core-v2.1.html
2 changes: 1 addition & 1 deletion reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,5 @@ Field Variables
| | | contains the input type to use (``datetime``, ``date`` or ``time``). |
+----------+------------+----------------------------------------------------------------------+

.. _`datetime local`: http://w3c.github.io/html-reference/datatypes.html#form.data.datetime-local
.. _`datetime local`: https://html.spec.whatwg.org/multipage/input.html#local-date-and-time-state-(type=datetime-local)
.. _`Date/Time Format Syntax`: https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax
2 changes: 1 addition & 1 deletion reference/forms/types/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ The actual default value of this option depends on other field options:

.. _`ISO 639-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_639-1
.. _`ISO 639-2 alpha-3 (2T)`: https://en.wikipedia.org/wiki/ISO_639-2
.. _`International Components for Unicode`: http://site.icu-project.org
.. _`International Components for Unicode`: https://icu.unicode.org/
2 changes: 1 addition & 1 deletion reference/forms/types/options/required.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ from your validation information.
The required option also affects how empty data for each field is
handled. For more details, see the `empty_data`_ option.

.. _`HTML5 required attribute`: http://diveintohtml5.info/forms.html
.. _`HTML5 required attribute`: https://html.spec.whatwg.org/multipage/input.html#attr-input-required
2 changes: 1 addition & 1 deletion reference/forms/types/timezone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ The actual default value of this option depends on other field options:

.. include:: /reference/forms/types/options/row_attr.rst.inc

.. _`ICU Project`: http://site.icu-project.org/
.. _`ICU Project`: https://icu.unicode.org/
2 changes: 1 addition & 1 deletion security/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,6 @@ Configuration example for form login and query_string
};

.. _`LDAP PHP extension`: https://www.php.net/manual/en/intro.ldap.php
.. _`RFC4515`: http://www.faqs.org/rfcs/rfc4515.html
.. _`RFC4515`: https://datatracker.ietf.org/doc/rfc4515/
.. _`LDAP injection`: http://projects.webappsec.org/w/page/13246947/LDAP%20Injection

2 changes: 1 addition & 1 deletion serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ take a look at how this bundle works.

.. _`API Platform`: https://api-platform.com
.. _`JSON-LD`: https://json-ld.org
.. _`Hydra Core Vocabulary`: http://www.hydra-cg.com
.. _`Hydra Core Vocabulary`: https://www.hydra-cg.com/
.. _`OpenAPI`: https://www.openapis.org
.. _`GraphQL`: https://graphql.org
.. _`JSON:API`: https://jsonapi.org
Expand Down
2 changes: 1 addition & 1 deletion templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1601,4 +1601,4 @@ for this class and :doc:`tag your service </service_container/tags>` with ``twig
.. _`default Twig filters and functions`: https://twig.symfony.com/doc/3.x/#reference
.. _`official Twig extensions`: https://github.com/twigphp?q=extra
.. _`global variables`: https://twig.symfony.com/doc/3.x/advanced.html#id1
.. _`hinclude.js`: http://mnot.github.io/hinclude/
.. _`hinclude.js`: https://mnot.github.io/hinclude/