From: Alexander Ebert Date: Sat, 22 Jun 2024 13:28:58 +0000 (+0200) Subject: Add a check for the secure context on the index page X-Git-Tag: 6.1.0_Alpha_1~48^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9703b880973d4d76604ed4faf519077ff1331dc;p=GitHub%2FWoltLab%2FWCF.git Add a check for the secure context on the index page --- diff --git a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php index 8df91e3b29..75e3f0657b 100644 --- a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php @@ -11,6 +11,7 @@ use wcf\system\cache\CacheHandler; use wcf\system\Environment; use wcf\system\event\EventHandler; use wcf\system\registry\RegistryHandler; +use wcf\system\request\RouteHandler; use wcf\system\WCF; /** @@ -147,6 +148,13 @@ final class StatusMessageAcpDashboardBox extends AbstractAcpDashboardBox ); } + if (!RouteHandler::secureContext()) { + $messages[] = new StatusMessage( + StatusMessageType::Error, + WCF::getLanguage()->getDynamicVariable('wcf.acp.index.insecureContext') + ); + } + return $messages; } diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index c32ac3c706..2130bd9a57 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -984,6 +984,7 @@ Sie erreichen das Fehlerprotokoll unter: {link controller='ExceptionLogView' isE Liste der fehlenden Texte für weitere Informationen.]]> Systemüberprüfung durchzuführen.]]> + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 220bf41552..7f07b3a0b5 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -962,6 +962,7 @@ You can access the error log at: {link controller='ExceptionLogView' isEmail=tru list of missing phrases for more information.]]> System Check.]]> +