Skip to content

Commit

Permalink
All output should be run through an escaping function
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Dec 24, 2024
1 parent 2d72180 commit 81c9451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/Repository/AbstractRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

0 comments on commit 81c9451

Please sign in to comment.