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)) {

Reply via email to