Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Parse link hrefs assuming they are percent encoded #5273

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 22, 2022

  1. Parse href in findLinks with QUrl::fromPercentEncoding

    This allows for both internal and external links containing percent escaped characters to be parsed correctly.
    Previously, http://example.com/foo%26bar was parsed as http://example.com/foo%2526bar instead of
    http://example.com/foo%26bar (http://example.com/foo&bar). Same issue for other escaped characters.
    
    According to the docs for the QUrl constructor, in it's default parsing using TolerantMode, it'll only
    transform %20 back to space, and will treat all other % signs as raw symbols to be encoded.
    daveallie committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    7b6eaad View commit details
    Browse the repository at this point in the history