fix: stored xss with wish url

This commit is contained in:
Niklas Bittner 2024-02-16 00:51:00 +01:00 committed by Jay Trees
parent 9d3e0cc16d
commit d60c2ff432

View file

@ -208,7 +208,7 @@ class Wish
$this->title = stripslashes($wishData['title'] ?? '');
$this->description = stripslashes($wishData['description'] ?? '');
$this->image = $wishData['image'] ?? '';
$this->url = $wishData['url'] ?? '';
$this->url = htmlspecialchars($wishData['url'] ?? '', ENT_QUOTES);
$this->priority = $wishData['priority'];
$this->status = $wishData['status'];
$this->is_purchasable = $wishData['is_purchasable'];