office-gobmx/ucbhelper
Michael Stahl f88af95552 ucbhelper,ucb,desktop: InternetProxyServer is problematic
It turns out that every single client of InternetProxyDecider simply
concatenates the 2 members of InternetProxyServer into a single string
and passes it on to curl_easy_setopt(CURLOPT_PROXY), which will happily
take a URL including scheme and everything.

It turns out that the awful GetUnixSystemProxy() tries to cut off the
scheme in a terrible way, but GetPACProxy() does no such thing and
WINHTTP_PROXY_INFO::lpszProxy may or may not contain scheme in its
entries; fix this to only separate the port and leave the rest alone.

So why do we need a InternetProxyServer struct?  Because officecfg has
separate entries that correspond to its members, and so
InternetProxyDecider gets separate events on its listener interface when
any of them changes, which is easiest to handle if it stores these
separately.

So just return a concatenated URL with or without scheme in getProxy().

Change-Id: I43c696471c8bec90667b5930fa00975adb432fe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155840
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-08-18 18:33:27 +02:00
..
source ucbhelper,ucb,desktop: InternetProxyServer is problematic 2023-08-18 18:33:27 +02:00
IwyuFilter_ucbhelper.yaml Recheck modules [uU]* with IWYU 2022-04-12 15:20:47 +02:00
Library_ucbhelper.mk
Makefile
Module_ucbhelper.mk
README.md

C++ Wrappers for UCB

C++ wrappers to help make using content providers easy.