CachyOS / CachyOS/pacman

Handle special symbols in URLs

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
14
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Certain mirrors will result in a 404 if special symbols are not handled safely according to the https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines documentation.

Would be good to find a way to encode all URLs similar to how https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent handles it.

For example:

Normal:
`https://cdn77.cachyos.org/x86_64_v4/cachyos-core-v4/gcc-15.2.1+r604+g0b99615a8aef-2-x86_64_v3.pkg.tar.zst`

Encoded:
`https://cdn77.cachyos.org/repo/x86_64_v4/cachyos-v4/gcc-15.2.1%2Br604%2Bg0b99615a8aef-2-x86_64_v3.pkg.tar.zst`

See:
- https://github.com/CachyOS/distribution/issues/362

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.