EmbarkStudios / discord-sdk

An open implementation of the Discord Game SDK in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improper validation of image asset keys

winrg opened this issue · comments

Describe the bug
discord_sdk::activity::Assets::{large_image, small_image} don't properly validate what is passed in to them. The 32-char limit applies to keys, but not to proxied URLs, which have no such length limit.

Expected behavior
For it to not incorrectly discard data.

My mistake, this is fixed properly now in #30.