We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0274f6e commit 6d31010Copy full SHA for 6d31010
docker/ui.php
@@ -25,13 +25,9 @@ function I(i){return document.getElementById(i);}
25
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
26
27
// Retrieve the host (e.g., www.example.com)
28
- $host = $_SERVER['HTTP_HOST'];
29
-
30
- // Retrieve the URI (path and query string)
31
- $uri = $_SERVER['REQUEST_URI'];
32
33
- // Combine them to get the full URL
34
- $url = $protocol . $host . $uri;
+ $host = filter_var($_SERVER['HTTP_HOST'], FILTER_SANITIZE_STRING);
+ $uri = filter_var($_SERVER['REQUEST_URI'], FILTER_SANITIZE_URL);
+ $url = $protocol . htmlspecialchars($host) . htmlspecialchars($uri);
35
array_unshift($servers,
36
[
37
"name"=> "This Server",
0 commit comments