Repository navigation
Conversation
e9e3e1d to
9804988
Compare
|
/backport to stable34 |
|
/backport to stable33 |
|
/backport to stable32 |
9804988 to
7370161
Compare
7370161 to
1781104
Compare
|
/backport to stable35 |
susnux
left a comment
There was a problem hiding this comment.
Usually url safe encoding also strips off the = padding
Sure, but Python doesn't trim the |
|
Just asking because def urlsafe_b64decode_nopad(data: bytes) -> bytes:
pad = b'=' * (4 - (len(data) & 3))
return base64.urlsafe_b64decode(data + pad)But if this is not needed here then ok :) |
|
Ah right, that is true. Still, we haven't had any issues with the |
Signed-off-by: Edward Ly <contact@edward.ly>
1781104 to
f32b71b
Compare
|
Superseded by #64771. |
|
This pull request has been automatically locked because it has been closed for more than 7 days. As we do not monitor merged or closed pull requests, we are locking this pull request to prevent further comments from getting lost in the noise. |
Summary
Some app screenshot URLs in the proxy server may include the '/' character in their base64 encoding, but since '/' is a prohibited character for file names, the computed proxy server URL was invalid and such screenshots would fail to be retrieved (or rather, the screenshots weren't saved to begin with because of this). This is addressed by making the encoding URL-safe (e.g. replacing
/and+with_and-, respectively).Accompanies nextcloud/usercontent.apps.nextcloud.com#25.
Checklist
3. to review, feature component)stable32)