discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
985 stars 236 forks source link

added scheme checks in embed.php #1037

Closed PeanutNL closed 1 year ago

PeanutNL commented 1 year ago

Follow up on #1036 Added checks on the urls on the embeds

PeanutNL commented 1 year ago

Replaced the preg_match checks!

Used filter_var to make sure its an URL. used parse_url to make sure it has a correct scheme.