D 2022-10-02T18:04:11.969 J icomment Some\smore\sthings\sthat\sshould\sbe\schanged:\r\n\r\n*\sNormalization\sshould\sstrip\sleading\s`.`\sor\s`..`\sfrom\spaths.\sRFC\s3986\sspecifies\sthat\sa\spath\sof\s`/../foo`\sshould\sbe\snormalized\sto\s`/foo`,\ssee\s[section\s5.4.1](https://www.rfc-editor.org/rfc/rfc3986#section-5.4.1).\r\n*\sAn\sempty\sauthority\sshould\slead\sto\san\sempty\shost\sand\snot\sa\s`n``l\shost,\sas\sa\snil\shost\swould\smean\sno\sauthority.\r\n*\sThe\s`file:`\sscheme\sshould\streat\sno\sauthority\sthe\ssame\sway\sas\san\sempty\sauthority\sas\sper\s[RFC\s8089\ssection\s2](https://datatracker.ietf.org/doc/html/rfc8089#section-2).\r\n*\sSince\s`file:/some/path`\sis\snicer\sto\sread\sto\s`file:///some/path`,\sit\scan\sbe\sconsidered\sto\sswitch\susing\sno\sauthority\sinstead\sof\san\sempty\sauthority\swhen\susing\s`fileURIWithPath:`.\r\n*\sSince\sthe\s`objfw-embedded:`\sscheme\sis\snot\sreally\shierarchical,\sit\sshould\sbe\schanged\sto\snot\suse\san\sauthority\sand\snot\sstart\spaths\swith\s`/`,\sso\sthat\sit\scan\sbe\streated\sas\sopaque. J login js J mimetype text/x-markdown K 44ec7f4c75ca9ef75dc9ed85cb9da4144e8eeb68 U js Z ef5353d60e1af577eadee3c092ac53c6