Validate the language parameter
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 16 Oct 2024 06:40:07 +0000 (08:40 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 16 Oct 2024 06:40:07 +0000 (08:40 +0200)
wcfsetup/install/files/emoji/index.php

index fbe95f2dace52d9f6f413c5b8084f2b70f0d470b..d7e45e47800635bfa1da1364ec771ae337358b72 100644 (file)
@@ -17,7 +17,7 @@ use GuzzleHttp\Psr7\Header;
 
 require(__DIR__ . '/../lib/system/api/autoload.php');
 
-if (!isset($_GET['l'])) {
+if (!isset($_GET['l']) || !\preg_match('~^[A-Za-z\-]+$~', $_GET['l'])) {
     @\http_response_code(404);
     exit;
 }