VirtualBox

Ignore:
Timestamp:
Jul 18, 2023 9:22:25 AM (21 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158452
Message:

Shared Clipboard: Make sure to encode HTTP URLs, to also support files with special characters [build fix]. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r100620 r100621  
    887887                ssize_t cch = RTStrAPrintf(&pszPath, "//transfer");
    888888# else
    889                 ssize_t cch = RTStrPrintf2(&pszPath, "//transfer%RU16", pTransfer->State.uID);
     889                ssize_t cch = RTStrAPrintf2(&pszPath, "//transfer%RU16", pTransfer->State.uID);
    890890# endif
    891891#else /* Release mode */
    892                 ssize_t cch = RTStrPrintf2(&pszPath, "//%s/%s/%s", SHCL_HTTPT_URL_NAMESPACE, szUuid, pEntry->pszName);
     892                ssize_t cch = RTStrAPrintf2(&pszPath, "//%s/%s/%s", SHCL_HTTPT_URL_NAMESPACE, szUuid, pEntry->pszName);
    893893#endif
    894894                AssertReturn(cch, VERR_NO_MEMORY);
Note: See TracChangeset for help on using the changeset viewer.

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