Commit 970a41fd authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Use https:// in comments and docs

Common URLs like typo3.org, tools.ietf.org or php.net are nowadays
available as HTTPS, however some places in TYPO3 still use http://
as reference. This should be streamlined to resemble https:// everywhere.

Resolves: #91581
Releases: master, 10.4
Change-Id: I76b5211f7e14cab0c6d190059d2be761bc664b53
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64733


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Björn Jacob's avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 32d9f05c
......@@ -742,7 +742,7 @@ abstract class AbstractTreeView
$crazyRecursionLimiter--;
$newID = $row['uid'];
if ($newID == 0) {
throw new \RuntimeException('Endless recursion detected: TYPO3 has detected an error in the database. Please fix it manually (e.g. using phpMyAdmin) and change the UID of ' . $this->table . ':0 to a new value. See http://forge.typo3.org/issues/16150 to get more information about a possible cause.', 1294586383);
throw new \RuntimeException('Endless recursion detected: TYPO3 has detected an error in the database. Please fix it manually (e.g. using phpMyAdmin) and change the UID of ' . $this->table . ':0 to a new value. See https://forge.typo3.org/issues/16150 to get more information about a possible cause.', 1294586383);
}
// Reserve space.
$this->tree[] = [];
......
......@@ -151,7 +151,7 @@ class BackendUtilityTest extends UnitTestCase
///////////////////////////////////////
/**
* @test
* @see http://forge.typo3.org/issues/20994
* @see https://forge.typo3.org/issues/20994
*/
public function getProcessedValueForZeroStringIsZero()
{
......
......@@ -422,7 +422,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface
$cacheControlHeader = 'no-cache, must-revalidate';
$pragmaHeader = 'no-cache';
// Prevent error message in IE when using a https connection
// see http://forge.typo3.org/issues/24125
// see https://forge.typo3.org/issues/24125
if (strpos(GeneralUtility::getIndpEnv('HTTP_USER_AGENT'), 'MSIE') !== false
&& GeneralUtility::getIndpEnv('TYPO3_SSL')) {
// Some IEs can not handle no-cache
......
......@@ -95,7 +95,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Return the current element
*
* @link http://php.net/manual/en/iterator.current.php
* @link https://php.net/manual/en/iterator.current.php
* @return mixed Can return any type.
*/
public function current()
......@@ -107,7 +107,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Move forward to next element
*
* @link http://php.net/manual/en/iterator.next.php
* @link https://php.net/manual/en/iterator.next.php
*/
public function next()
{
......@@ -118,7 +118,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Return the key of the current element
*
* @link http://php.net/manual/en/iterator.key.php
* @link https://php.net/manual/en/iterator.key.php
* @return int 0 on failure.
*/
public function key()
......@@ -131,7 +131,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Checks if current position is valid
*
* @link http://php.net/manual/en/iterator.valid.php
* @link https://php.net/manual/en/iterator.valid.php
* @return bool The return value will be casted to boolean and then evaluated.
*/
public function valid()
......@@ -143,7 +143,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Rewind the Iterator to the first element
*
* @link http://php.net/manual/en/iterator.rewind.php
* @link https://php.net/manual/en/iterator.rewind.php
*/
public function rewind()
{
......@@ -154,7 +154,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* String representation of object
*
* @link http://php.net/manual/en/serializable.serialize.php
* @link https://php.net/manual/en/serializable.serialize.php
* @return string the string representation of the object or &null;
*/
public function serialize()
......@@ -169,7 +169,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Constructs the object
*
* @link http://php.net/manual/en/serializable.unserialize.php
* @link https://php.net/manual/en/serializable.unserialize.php
* @param string $serialized The string representation of the object
* @return mixed the original value unserialized.
*/
......@@ -183,7 +183,7 @@ abstract class AbstractRecordCollection implements RecordCollectionInterface, Pe
* (PHP 5 >= 5.1.0)
* Count elements of an object
*
* @link http://php.net/manual/en/countable.count.php
* @link https://php.net/manual/en/countable.count.php
* @return int The custom count as an integer.
*/
public function count()
......
......@@ -371,7 +371,7 @@ class Message implements MessageInterface
/**
* Assert that the provided header values are valid.
*
* @see http://tools.ietf.org/html/rfc7230#section-3.2
* @see https://tools.ietf.org/html/rfc7230#section-3.2
* @param string[] $values
* @throws \InvalidArgumentException
*/
......@@ -437,7 +437,7 @@ class Message implements MessageInterface
/**
* Check whether or not a header name is valid and throw an exception.
*
* @see http://tools.ietf.org/html/rfc7230#section-3.2
* @see https://tools.ietf.org/html/rfc7230#section-3.2
* @param string $name
* @throws \InvalidArgumentException
*/
......
......@@ -234,7 +234,7 @@ class Request extends Message implements RequestInterface
* immutability of the message, and MUST return an instance that has the
* changed request target.
*
* @link http://tools.ietf.org/html/rfc7230#section-2.7 (for the various
* @link https://tools.ietf.org/html/rfc7230#section-2.7 (for the various
* request-target forms allowed in request messages)
*
* @param mixed $requestTarget
......@@ -287,7 +287,7 @@ class Request extends Message implements RequestInterface
*
* This method MUST return a UriInterface instance.
*
* @link http://tools.ietf.org/html/rfc3986#section-4.3
* @link https://tools.ietf.org/html/rfc3986#section-4.3
* @return \Psr\Http\Message\UriInterface Returns a UriInterface instance
* representing the URI of the request.
*/
......@@ -321,7 +321,7 @@ class Request extends Message implements RequestInterface
* immutability of the message, and MUST return an instance that has the
* new UriInterface instance.
*
* @link http://tools.ietf.org/html/rfc3986#section-4.3
* @link https://tools.ietf.org/html/rfc3986#section-4.3
*
* @param \Psr\Http\Message\UriInterface $uri New request URI to use.
* @param bool $preserveHost Preserve the original state of the Host header.
......
......@@ -172,7 +172,7 @@ class Response extends Message implements ResponseInterface
* immutability of the message, and MUST return an instance that has the
* updated status and reason phrase.
*
* @link http://tools.ietf.org/html/rfc7231#section-6
* @link https://tools.ietf.org/html/rfc7231#section-6
* @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
*
* @param int $code The 3-digit integer result code to set.
......@@ -202,7 +202,7 @@ class Response extends Message implements ResponseInterface
* listed in the IANA HTTP Status Code Registry) for the response's
* status code.
*
* @link http://tools.ietf.org/html/rfc7231#section-6
* @link https://tools.ietf.org/html/rfc7231#section-6
* @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
* @return string Reason phrase; must return an empty string if none present.
*/
......
......@@ -68,7 +68,7 @@ class Stream implements StreamInterface
* This method MUST NOT raise an exception in order to conform with PHP's
* string casting operations.
*
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
* @see https://php.net/manual/en/language.oop5.magic.php#object.tostring
* @return string
*/
public function __toString()
......@@ -309,7 +309,7 @@ class Stream implements StreamInterface
* The keys returned are identical to the keys returned from PHP's
* stream_get_meta_data() function.
*
* @link http://php.net/manual/en/function.stream-get-meta-data.php
* @link https://php.net/manual/en/function.stream-get-meta-data.php
*
* @param string $key Specific metadata to retrieve.
*
......
......@@ -163,8 +163,8 @@ class UploadedFile implements UploadedFileInterface
* If you wish to move to a stream, use getStream(), as SAPI operations
* cannot guarantee writing to stream destinations.
*
* @see http://php.net/is_uploaded_file
* @see http://php.net/move_uploaded_file
* @see https://php.net/is_uploaded_file
* @see https://php.net/move_uploaded_file
* @param string $targetPath Path to which to move the uploaded file.
* @throws \InvalidArgumentException if the $path specified is invalid.
* @throws \RuntimeException on any error during the move operation, or on the second or subsequent call to the method.
......@@ -229,7 +229,7 @@ class UploadedFile implements UploadedFileInterface
* If the file was uploaded successfully, this method MUST return
* UPLOAD_ERR_OK.
*
* @see http://php.net/manual/en/features.file-upload.errors.php
* @see https://php.net/manual/en/features.file-upload.errors.php
* @return int One of PHP's UPLOAD_ERR_XXX constants.
*/
public function getError()
......
......@@ -32,8 +32,8 @@ class UploadedFileFactory implements UploadedFileFactoryInterface
* If a size is not provided it will be determined by checking the size of
* the file.
*
* @see http://php.net/manual/features.file-upload.post-method.php
* @see http://php.net/manual/features.file-upload.errors.php
* @see https://php.net/manual/features.file-upload.post-method.php
* @see https://php.net/manual/features.file-upload.errors.php
*
* @param StreamInterface $stream Underlying stream representing the uploaded file content.
* @param int $size in bytes
......
......@@ -240,7 +240,7 @@ class Uri implements UriInterface
* The value returned MUST be normalized to lowercase, per RFC 3986
* Section 3.2.2.
*
* @see http://tools.ietf.org/html/rfc3986#section-3.2.2
* @see https://tools.ietf.org/html/rfc3986#section-3.2.2
* @return string The URI host.
*/
public function getHost()
......@@ -571,7 +571,7 @@ class Uri implements UriInterface
* - If a query is present, it MUST be prefixed by "?".
* - If a fragment is present, it MUST be prefixed by "#".
*
* @see http://tools.ietf.org/html/rfc3986#section-4.1
* @see https://tools.ietf.org/html/rfc3986#section-4.1
* @return string
*/
public function __toString()
......
......@@ -673,7 +673,7 @@ class ResourceCompressor
// Remove certain whitespace.
// There are different conditions for removing leading and trailing
// whitespace.
// @see http://php.net/manual/regexp.reference.subpatterns.php
// @see https://php.net/manual/regexp.reference.subpatterns.php
$contents = preg_replace(
'<
# Strip leading and trailing whitespace.
......
......@@ -18,7 +18,7 @@ namespace TYPO3\CMS\Core\Service;
/**
* Class with helper functions for clearing the PHP opcache.
* It auto detects the opcache system and invalidates/resets it.
* http://forge.typo3.org/issues/55252
* https://forge.typo3.org/issues/55252
* Supported opcaches are: OPcache >= 7.0 (PHP 5.5)
*/
class OpcodeCacheService
......
......@@ -858,7 +858,7 @@ class GeneralUtility
* Convert the domain part to punicode if it does not look like a regular
* domain name. Only the domain part because RFC3986 specifies the the rest of
* the url may not contain special characters:
* http://tools.ietf.org/html/rfc3986#appendix-A
* https://tools.ietf.org/html/rfc3986#appendix-A
*
* @param string $url The URL to be validated
* @return bool Whether the given URL is valid
......@@ -2767,7 +2767,7 @@ class GeneralUtility
*
* @param string $theFile File path to evaluate
* @return bool TRUE, $theFile is allowed path string, FALSE otherwise
* @see http://php.net/manual/en/security.filesystem.nullbytes.php
* @see https://php.net/manual/en/security.filesystem.nullbytes.php
*/
public static function validPathStr($theFile)
{
......
......@@ -67,7 +67,7 @@ class MathUtility
*
* Note: Integer casting from objects or arrays is considered undefined and thus will return false.
*
* @see http://php.net/manual/en/language.types.integer.php#language.types.integer.casting.from-other
* @see https://php.net/manual/en/language.types.integer.php#language.types.integer.casting.from-other
* @param mixed $var Any input variable to test
* @return bool Returns TRUE if string is an integer
*/
......
......@@ -99,10 +99,10 @@ SYS:
description: 'Defines a list of IP addresses which will allow development-output to display. The debug() function will use this as a filter. See the function <code>\TYPO3\CMS\Core\Utility\GeneralUtility::cmpIP()</code> for details on syntax. Setting this to blank value will deny all. Setting to "*" will allow all.'
ddmmyy:
type: text
description: 'Format of Day-Month-Year - see PHP-function <a href="http://php.net/date" target="_blank" rel="noreferrer">date()</a>'
description: 'Format of Day-Month-Year - see PHP-function <a href="https://php.net/date" target="_blank" rel="noreferrer">date()</a>'
hhmm:
type: text
description: 'Format of Hours-Minutes - see PHP-function <a href="http://php.net/date" target="_blank" rel="noreferrer">date()</a>'
description: 'Format of Hours-Minutes - see PHP-function <a href="https://php.net/date" target="_blank" rel="noreferrer">date()</a>'
USdateFormat:
type: bool
description: 'If TRUE, dates entered in the TCEforms of the backend will be formatted mm-dd-yyyy'
......@@ -129,18 +129,18 @@ SYS:
description: 'Integer: memory_limit in MB: If more than 16, TYPO3 will try to use ini_set() to set the memory limit of PHP to the value. This works only if the function ini_set() is not disabled by your sysadmin.'
phpTimeZone:
type: text
description: 'timezone to force for all date() and mktime() functions. A list of supported values can be found at <a href="http://php.net/manual/en/timezones.php" target="_blank" rel="noreferrer">php.net</a>. If this is not set, a valid fallback will be searched for by PHP (php.ini''s <a href="http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" target="_blank" rel="noreferrer">date.timezone</a> setting, server defaults, etc); and if no fallback is found, the value of "UTC" is used instead.'
description: 'timezone to force for all date() and mktime() functions. A list of supported values can be found at <a href="https://php.net/manual/en/timezones.php" target="_blank" rel="noreferrer">php.net</a>. If this is not set, a valid fallback will be searched for by PHP (php.ini''s <a href="http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" target="_blank" rel="noreferrer">date.timezone</a> setting, server defaults, etc); and if no fallback is found, the value of "UTC" is used instead.'
UTF8filesystem:
type: bool
description: |
<p>
If TRUE then TYPO3 uses utf-8 to store file names. This allows for accented Latin letters as well as any other non-latin characters like Cyrillic and Chinese.
<strong>IMPORTANT:</strong> This requires a UTF-8 compatible locale in order to work. Otherwise problems with filenames containing special characters will occur.
See [SYS][systemLocale] and <a href="http://php.net/manual/en/function.setlocale.php" target="_blank" rel="noreferrer">setlocale()</a>.
See [SYS][systemLocale] and <a href="https://php.net/manual/en/function.setlocale.php" target="_blank" rel="noreferrer">setlocale()</a>.
</p>
systemLocale:
type: text
description: 'Locale used for certain system related functions, e.g. escaping shell commands. If problems with filenames containing special characters occur, the value of this option is probably wrong. See <a href="http://php.net/manual/en/function.setlocale.php" target="_blank" rel="noreferrer">setlocale()</a>.'
description: 'Locale used for certain system related functions, e.g. escaping shell commands. If problems with filenames containing special characters occur, the value of this option is probably wrong. See <a href="https://php.net/manual/en/function.setlocale.php" target="_blank" rel="noreferrer">setlocale()</a>.'
reverseProxyIP:
type: list
description: 'List of IP addresses. If TYPO3 is behind one or more (intransparent) reverse proxies the IP addresses must be added here.'
......@@ -181,13 +181,13 @@ SYS:
description: 'Classname to handle PHP errors. E.g.: TYPO3\CMS\Core\Error\ErrorHandler. This class displays and logs all errors that are registered as [SYS][errorHandlerErrors]. Leave empty to disable error handling. Errors will be logged and can be sent to the optionally installed developer log or to the "syslog" database table. If an error is registered in [SYS][exceptionalErrors] it will be turned into an exception to be handled by the configured exceptionHandler.'
errorHandlerErrors:
type: errors
description: 'The E_* constant that will be handled by the [SYS][errorHandler]. Not all PHP error types can be handled! <code>E_USER_DEPRECATED</code> will always be handled, regardless of this setting. Default is 30466 = <code>E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR)</code> (see <a href="http://php.net/manual/en/errorfunc.constants.php" target="_blank" rel="noreferrer">PHP documentation</a>).'
description: 'The E_* constant that will be handled by the [SYS][errorHandler]. Not all PHP error types can be handled! <code>E_USER_DEPRECATED</code> will always be handled, regardless of this setting. Default is 30466 = <code>E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR)</code> (see <a href="https://php.net/manual/en/errorfunc.constants.php" target="_blank" rel="noreferrer">PHP documentation</a>).'
exceptionalErrors:
type: errors
description: 'The E_* constant that will be converted into an exception by the default [SYS][errorHandler]. Default is 4096 = <code>E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_USER_ERROR | E_USER_NOTICE | E_USER_WARNING)</code> (see <a href="http://php.net/manual/en/errorfunc.constants.php" target="_blank rel="noreferrer"">PHP documentation</a>). E_USER_DEPRECATED is always excluded to avoid exceptions to be thrown for deprecation messages.'
description: 'The E_* constant that will be converted into an exception by the default [SYS][errorHandler]. Default is 4096 = <code>E_ALL & ~(E_STRICT | E_NOTICE | E_COMPILE_WARNING | E_COMPILE_ERROR | E_CORE_WARNING | E_CORE_ERROR | E_PARSE | E_ERROR | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_USER_ERROR | E_USER_NOTICE | E_USER_WARNING)</code> (see <a href="https://php.net/manual/en/errorfunc.constants.php" target="_blank rel="noreferrer"">PHP documentation</a>). E_USER_DEPRECATED is always excluded to avoid exceptions to be thrown for deprecation messages.'
belogErrorReporting:
type: errors
description: 'Configures which PHP errors should be logged to the "syslog" database table (extension: belog). If set to "0" no PHP errors are logged to the sys_log table. Default is 30711 = <code>E_ALL & ~(E_STRICT | E_NOTICE)</code> (see <a href="http://php.net/manual/en/errorfunc.constants.php" target="_blank" rel="noreferrer">PHP documentation</a>).'
description: 'Configures which PHP errors should be logged to the "syslog" database table (extension: belog). If set to "0" no PHP errors are logged to the sys_log table. Default is 30711 = <code>E_ALL & ~(E_STRICT | E_NOTICE)</code> (see <a href="https://php.net/manual/en/errorfunc.constants.php" target="_blank" rel="noreferrer">PHP documentation</a>).'
generateApacheHtaccess:
type: bool
description: 'TYPO3 can create <em>.htaccess</em> files which are used by Apache Webserver. They are useful for access protection or performance improvements. Currently <em>.htaccess</em> files in the following directories are created, if they do not exist: <ul><li>typo3temp/compressor/</li></ul>You want to disable this feature, if you are not running Apache or want to use own rulesets.'
......
......@@ -33,7 +33,7 @@ Usage:
20.header = Cache-control: Private
}
See also: http://php.net/header
See also: https://php.net/header
Impact
======
......
......@@ -13,7 +13,7 @@ Description
A new class `\TYPO3\CMS\Core\Type\File\FileInfo` which extends `SplFileInfo` is now
available as an API for fetching meta information from files.
Besides the native .. _SplFileInfo API: http://php.net/manual/en/class.splfileinfo.php,
Besides the native .. _SplFileInfo API: https://php.net/manual/en/class.splfileinfo.php,
it provides a new method `getMimeType()` to get the mime type of a file, e.g. text/html.
It uses the native PHP function `finfo_file()` and `mime_content_type()` as a fallback.
......
......@@ -13,7 +13,7 @@ Description
The class \Throwable was added in PHP7 as new parent of \Exceptions. This leads to the issue that
ExceptionHandlers need to change the API of their exception handling method. To support PHP 5.5, 5.6 and 7.0
we need to remove the type hint. It will later be set to \Throwable if we only support PHP 7.0 and newer.
See http://php.net/manual/en/migration70.incompatible.php
See https://php.net/manual/en/migration70.incompatible.php
Impact
......
......@@ -13,7 +13,7 @@ Description
The class `\Throwable` was added in PHP7 as new parent of `\Exceptions`. So we
were in need to remove the type hint in :issue:`72117`, which we now read as `\Throwable`
instead of `\Exception` as we only support PHP 7.0 or newer.
See http://php.net/manual/en/migration70.incompatible.php
See https://php.net/manual/en/migration70.incompatible.php
Impact
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment