Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle # and ? characters in directory path #6171

Merged
merged 1 commit into from
Sep 21, 2024
Merged

Handle # and ? characters in directory path #6171

merged 1 commit into from
Sep 21, 2024

Commits on Sep 21, 2024

  1. Handle # and ? characters in directory path

    When referencing the current-working-directory, before
    it is set by an OSC 7 escape sequence, we ask the OS
    for the correct path.  This path was then being parsed
    as a URL; where a "#" or "?" character would be
    interpreted as the start of a fragment or query
    component of a URL -- which is a mistake.
    
    So this change parses the returned directory as such,
    where those characters will be treated as a normal
    character in the path.
    
    Nothing is changed for the OSC 7 escape sequence case.
    In that case, the application must percent-encode the
    path before sending, so that those characters are not
    misinterpreted.
    
    As per issue wez#6158 reported by Syntaxheld
    loops committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    6779901 View commit details
    Browse the repository at this point in the history