]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST/MINOR: Unexpected curl URL globling.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 13 Jul 2018 08:44:12 +0000 (10:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Jul 2018 09:00:32 +0000 (11:00 +0200)
With certain curl versions URLs which contain brackets may be interpreted
by the "URL globbing parser". This patch ensures that such brackets
are escaped.

Thank you to Ilya Shipitsin for having reported this issue.

reg-tests/ssl/h00000.vtc

index 819f3850f7238c938786dddba60257564f711200..d1b48fb78e51e4ae7546b97eccd9bd0a2ebca0c4 100644 (file)
@@ -34,7 +34,7 @@ haproxy h1 -conf {
 shell {
     HOST=${h1_frt_addr}
     if [ "${h1_frt_addr}" = "::1" ] ; then
-        HOST="[::1]"
+        HOST="\[::1\]"
     fi
     for i in 1 2 3 4 5; do
         curl -i -k https://$HOST:${h1_frt_port} & pids="$pids $!"