Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95254

When passing a string that has a % inside it to QUrlQuery::addQueryItem then it will not escape the % if it is followed with 2 hexadecimal characters

    XMLWordPrintable

    Details

    • Commits:
      c8782acd457a05d366f611eca4f146a1659c91ea

      Description

      When passing a string that has a % inside it to QUrlQuery::addQueryItem then it will not escape the % if it is followed with 2 hexadecimal characters. This is because it considers it to already be escaped, but there are cases when it would be expected to escape it regardless.

      Granted the default is to only escape it if is a single %, but ideally if this could be made an option so that all %'s are escaped on request then that would be good. Alternatively, this should be documented as the case in QUrlQuery

        Attachments

        For Gerrit Dashboard: QTBUG-95254
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            andysh Andy Shaw
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes