From 86a255f28503fa9c9b11f97c8001f0487a77d8ed Mon Sep 17 00:00:00 2001 From: emily-shen <69125074+emily-shen@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:18:27 +0100 Subject: [PATCH] changeset --- .changeset/shaggy-peas-notice.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/shaggy-peas-notice.md diff --git a/.changeset/shaggy-peas-notice.md b/.changeset/shaggy-peas-notice.md new file mode 100644 index 000000000000..ed15c3e20492 --- /dev/null +++ b/.changeset/shaggy-peas-notice.md @@ -0,0 +1,11 @@ +--- +"@cloudflare/workers-shared": patch +"miniflare": patch +"wrangler": patch +--- + +fix: remove filepath encoding on asset upload and handle sometimes-encoded characters + +Some characters like [ ] @ are encoded by encodeURIComponent() but are often requested at an unencoded filepath. +This change will make assets with filenames with these characters accessible at both the encoded and unencoded paths, +but use the encoded path as the canonical one.