Skip to content

A live bird collage card for your Home Assistant dashboard.

Patching minor XSS vulnerability

ehpersonal384de5618dc45b
diff --git a/homepage/views.php b/homepage/views.php
index be4e0e5d..d6378339 100644
--- a/homepage/views.php
+++ b/homepage/views.php
@@ -353,7 +353,7 @@ if(isset($_GET['view'])){
$output = implode("\n", $lines);
$results = $output;
-
+ $results = nl2br(htmlspecialchars($results));
if(strlen($results) == 0) {
$results = "This command has no output.";
}