]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix proxy username and password parsing.
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 2 Aug 2019 21:05:08 +0000 (14:05 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 2 Aug 2019 21:09:01 +0000 (14:09 -0700)
commit18918db3d2789aa293b96c99a3d65fcd29d30017
tree1690bb5123df02060514a8b4f72b37993f48d821
parent4d377ea1861cbb084fd9cf1bd2986c7fb9366bb0
Fix proxy username and password parsing.

We are supposed to take the *last* (unescaped) @ sign as the separation
between user:pass and hostname, not the first. So use strrchr() instead
of strchr().

Conversely, the first colon is the separation between user and pass so
strchr is still correct there.

Also actually support unescaping the resulting username and password.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
http.c
www/changelog.xml