Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pathname encoding for isolated '.' and '..' values. (#156)
This commit fixes an issue where '.' and '..' could be incorrectly removed from a pathname during parsing. This would happen in cases where the encoding callback saw the '.' or '..' individually without surrounding characters. This would cause the algorithm to encode them as '/.' or '/..' which the URL parser collapses to just '/'. To avoid this behavior we explicitly check for '.' and '..' values so they can be immediately returned without encoding.
- Loading branch information