fix(server/resources): decode percent-encoded resource name from URI fragment#4003
fix(server/resources): decode percent-encoded resource name from URI fragment#4003lucienlmy wants to merge 1 commit into
Conversation
…fragment Resource names from URI fragments were not decoded back from percent-encoding, causing non-ASCII resource names (e.g. Chinese) to be registered as encoded strings like "%E8%B7%91%E9%85%B7". This resulted in: - `ensure <resource>` unable to find resources with non-ASCII names - Garbled resource names in console warnings/errors The path component already calls `skyr::percent_decode()`, but the fragment (used as the resource name) was missing the same treatment. Adding it makes the encode/decode cycle symmetric.
You didnt use the PR template |
I submitted for the first time, where was the template? |
Resource names from URI fragments were not decoded back from
percent-encoding, causing non-ASCII resource names (e.g. Chinese)
to be registered as encoded strings like "%E8%B7%91%E9%85%B7".
This resulted in:
ensure <resource>unable to find resources with non-ASCII namesThe path component already calls
skyr::percent_decode(), but thefragment (used as the resource name) was missing the same treatment.
Adding it makes the encode/decode cycle symmetric.