VirtualBox

Ignore:
Timestamp:
Aug 30, 2018 1:19:36 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: Fixed empty array & map handling by making the begin iteration functions return VERR_JSON_IS_EMPTY rather than letter the query method do that. Made query parameter processing table driven and made it use the right escapeing. bugref:9167

File:
1 edited

Legend:

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

    r73977 r73978  
    117117                if (strQuery.isNotEmpty())
    118118                {
    119                     if (RT_SUCCESS(rc))
    120                         rc = strFullUrl.appendNoThrow('?');
    121                     if (RT_SUCCESS(rc))
    122                         rc = strFullUrl.appendNoThrow(strQuery);
     119                    Assert(strQuery.startsWith("?"));
     120                    rc = strFullUrl.appendNoThrow(strQuery);
    123121                    strQuery.setNull();
    124122                }
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