VirtualBox

Changeset 79837 in vbox for trunk


Ignore:
Timestamp:
Jul 17, 2019 3:12:00 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: doQueryParameters - use %RMpf instead of %RMpq. Plus sings
must be encoded, otherwise they will be misinterpreted as spaces by
the peer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientRequestBase.cpp

    r76553 r79837  
    153153                AssertRCReturn(rc, rc);
    154154
    155                 rc = a_pStrQuery->appendPrintfNoThrow("%c%RMpq=%RMpq", chSep, a_paQueryParams[i].pszName, strTmpVal.c_str());
     155                rc = a_pStrQuery->appendPrintfNoThrow("%c%RMpf=%RMpf", chSep, a_paQueryParams[i].pszName, strTmpVal.c_str());
    156156                AssertRCReturn(rc, rc);
    157157
     
    172172                    AssertRCReturn(rc, rc);
    173173
    174                     rc = a_pStrQuery->appendPrintfNoThrow("%c%RMpq=%RMpq", chSep, a_paQueryParams[i].pszName, strTmpVal.c_str());
     174                    rc = a_pStrQuery->appendPrintfNoThrow("%c%RMpf=%RMpf", chSep, a_paQueryParams[i].pszName, strTmpVal.c_str());
    175175                    AssertRCReturn(rc, rc);
    176176
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette