Is it valid and safe to use the parent directory double-dots inside an URL like in the following example:
http://example.com/path/../to/file.jpg
RFC3986 defines URIs.
It describes how paths are hierarchical, and how...
The path segments "." and "..", also known as dot-segments
... work in a similar way to filesystem paths.
It also describes rules for "relative resolution" in which .
and ..
may be removed.
Essentially, it is legal and does what you expect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With