From 81c9451586de0cd1b61efc93ce8d28fafdc0e868 Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Tue, 24 Dec 2024 12:42:03 -0500 Subject: [PATCH] All output should be run through an escaping function --- src/Discord/Repository/AbstractRepositoryTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord/Repository/AbstractRepositoryTrait.php b/src/Discord/Repository/AbstractRepositoryTrait.php index c53845d8e..a11bf02e2 100644 --- a/src/Discord/Repository/AbstractRepositoryTrait.php +++ b/src/Discord/Repository/AbstractRepositoryTrait.php @@ -782,6 +782,6 @@ public function __call($name, $arguments): mixed return $this->{"__Collection__{$name}"}(...$arguments); } - throw new \BadMethodCallException("Method {$name} does not exist."); + throw new \BadMethodCallException("Method " . htmlspecialchars($name, ENT_QUOTES, 'UTF-8') . " does not exist."); } }