You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The remove_dot_segments() function returns an empty-string path for an absolute input path after removing dot-dot segments if the number of dot-dot segments is greater than the deepest path level. This is not compatible with the algorithm suggested by RFC3986 section-5.2.4.
from rfc3986.normalizers import remove_dot_segments
assert remove_dot_segments('/a/b/c/../../../../') == '/'
The text was updated successfully, but these errors were encountered:
t3stme1x
changed the title
The remove_dot_segments() functions returns a relative path for an absolute input path after removing dot-dot segments.
The remove_dot_segments() function returns a relative path for an absolute input path after removing dot-dot segments.
Aug 14, 2023
The remove_dot_segments() function returns an empty-string path for an absolute input path after removing dot-dot segments if the number of dot-dot segments is greater than the deepest path level. This is not compatible with the algorithm suggested by RFC3986 section-5.2.4.
INPUT: '/a/b/c/../../../../'
EXPECTED OUTPUT: '/'
Got: ''
Code snippet to reproduce the issue:
The text was updated successfully, but these errors were encountered: