[image](https://feedback.fluxer.com/p/301#f-280)Removed: -### ChecksRemoved: -Removed: -- ☑ I searched for existing issues and didn't find a duplicate.Removed: -
Show
Received value of X-Audit-Log-Reason header is not url-decoded
Summary
I wanted to make an action and provide an audit log reason that contains a Unicode character (✰ to be exact).
Since the header value cannot contain non-ISO-8859-1 characters (or, realistically, characters outside the US-ASCII charset), I provided a URL-encoded UTF-8 value to the X-Audit-Log-Reason header, expecting the API to decode it before storing. Instead, the value was stored as is.
FYI, this works fine on Discord.
Look at the audit log in the client to see the issue. You can also verify the value of the "reason" field for the audit log entry in DevTools to see that the reason was not decoded before storing.
FYI, the value of the reason before encoding in the above request is:
Received value of X-Audit-Log-Reason header is not url-decoded
Summary
I wanted to make an action and provide an audit log reason that contains a Unicode character (✰ to be exact).
Since the header value cannot contain non-ISO-8859-1 characters (or, realistically, characters outside the US-ASCII charset), I provided a URL-encoded UTF-8 value to the X-Audit-Log-Reason header, expecting the API to decode it before storing. Instead, the value was stored as is.
FYI, this works fine on Discord.
Look at the audit log in the client to see the issue. You can also verify the value of the "reason" field for the audit log entry in DevTools to see that the reason was not decoded before storing.
FYI, the value of the reason before encoding in the above request is: