Skip to content

Commit

Permalink
fixed error message to escape xml entities
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Oct 10, 2022
1 parent 8c52555 commit 23ea346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/RSS.php
Expand Up @@ -336,7 +336,7 @@ public function recentAdds() {
}

public function emitError() {
$message = "Invalid feed: ".$_REQUEST["feed"];
$message = "Invalid feed: ".self::xmlentities($_REQUEST["feed"]);
echo "<channel>\n<title>$message</title>\n<link>".Engine::getBaseUrl()."</link>\n<description>$message</description>\n</channel>\n";
}
}

0 comments on commit 23ea346

Please sign in to comment.