Skip to content

Gopher selector with %25 not handled properly #728

Open
@abbrev

Description

@abbrev

I have a Gopher menu with the following item in it:

0%25 selector<TAB>/%25<TAB>asciz.com<TAB>70

See gopher://asciz.com/1/projects/gopher/misc.

Clicking on the link (titled %25 selector) results in a "Bad selector" error from my server.

Expected result: %25 is percent-encoded to %2525 when it's converted to a URL and percent-decoded (to %25) when it's converted back to a selector.

Actual result: %25 is not percent-encoded when it's converted to a URL, but it is percent-decoded (to %) when it's converted back to a selector.

Edit to add:

You can use the following command in a *nix shell to confirm that the /%25 selector really does give you the file that the Gopher menu item points to:

echo /%25 | nc asciz.com 70

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions