You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this can be fixed, and at the same time greatly simplify the code, by following the pattern in Backblaze's sample code: use the platform's stdlib encoding function, and just replace "%2F" with "/" for their edge-case of not encoding the slash.
I also found that DownloadFileByName probably needs to escape the filename when used as part of the request URI.
Hi, I did some fuzz-testing on blazer and found that there were some cases where the input does not come through cleanly for
unescape(escape(s))
:I think this can be fixed, and at the same time greatly simplify the code, by following the pattern in Backblaze's sample code: use the platform's stdlib encoding function, and just replace "%2F" with "/" for their edge-case of not encoding the slash.
I also found that
DownloadFileByName
probably needs to escape the filename when used as part of the request URI.My fixes and some tests for this are here:
armhold@4df8235
armhold@1b09f11
Would you mind reviewing? I can submit a PR if you think that's appropriate, but would appreciate your review of my potential changes.
Thanks!
The text was updated successfully, but these errors were encountered: