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

Fix percent-encoded fragment modification in Poco::URI #2959

Merged
merged 1 commit into from
Jul 3, 2022

Commits on Mar 18, 2020

  1. Fix percent-encoded fragment modification in Poco::URI

    Before this commit using Poco::URI class to parse specific URIs that had
    percent-encoded fragment identifier resulted in the loss of information
    concerning the way the fragment identifier was encoded. There could be the cases
    when the  result of Poco::URI object serialization to string did not match the
    original URI string Poco::URI object was created from.
    
    In this commit we change the internal logic of fragment processing in Poco::URI,
    so that the fragment is stored inside the class in raw form (the same way as
    query string). The methods getFragment and setFragment work the old way (with
    percent-decoded fragment values), new methods getRawFragment and setRawFragment
    are added to get access to the original fragment representation.
    Daniil Zotkin committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    908ca6e View commit details
    Browse the repository at this point in the history