Hugo 12/27/2024

URLs and percent encoding

Read Original

The article details a developer's realization that automatically decoding percent-encoded URLs in a library (libdav) is flawed. Using examples like '/path/to/theitem%2Fwithslash.ics', it explains how decoding reserved characters like '/' changes the resource's meaning. It references RFC3986 to distinguish between reserved and unreserved characters and advises treating URL paths as opaque strings for safety, with normalization only for comparison.

URLs and percent encoding

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser