[web-php] master: Fix XSS
| From: | Derick Rethans | Date: | Wed, 18 Nov 2026 13:44:38 +0000 |
| Subject: | [web-php] master: Fix XSS | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-34211@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2026-11-18T13:43:04Z
Commit: https://github.com/php/web-php/commit/16b75b407a18626a9843636470c1b5cc930016f6
Raw diff: https://github.com/php/web-php/commit/16b75b407a18626a9843636470c1b5cc930016f6.diff
Fix XSS
Changed paths:
M public/downloads-get-instructions.php
Diff:
diff --git a/public/downloads-get-instructions.php b/public/downloads-get-instructions.php
index 6c6fa8c010..5e4fed31fc 100644
--- a/public/downloads-get-instructions.php
+++ b/public/downloads-get-instructions.php
@@ -31,6 +31,10 @@
$multiversion = $options['multiversion'] === 'Y';
}
+if (!in_array($options['version'], $versions, true)) {
+ $options['version'] = 'default';
+}
+
$source = false;
if (array_key_exists('source', $options)) {