Closed tschai-yim closed 8 months ago
Thanks for bringing that to my attention. I'll have a look at it as soon as possible. Supposedly I should also check other places where parameters are passed like this.
Fixed on master, see commit referenced by GitHub.
Relevant components
syncthingctl
)libsyncthing
)Environment and versions
syncthingtray
,qtutilities
andc++utilities
:1.4.12
,6.13.4
,5.24.5
6.6.1
Bug description Syncthing Tray does not escape folder IDs when making requests. I have a folder ID
name+
which results in the following internal error:The
+
character is most likely interpreted as a space by Syncthing. Manually making the request withname%2B
returns the expected result.Steps to reproduce
name+
Expected behavior Special characters in the folder ID get escaped and Syncthing Tray can interact with these folders.
Additional context
QUrlQuery::addQueryItem()
does not automatically escapeQUrl::toPercentEncoding()
which could maybe solve this