Re: [PATCH] REGTEST/MINOR: Unexpected curl URL globling.

2018-07-13 Thread Willy Tarreau
On Fri, Jul 13, 2018 at 10:51:07AM +0200, Frederic Lecaille wrote:
> Another patch to fix a remaining issue with this boring VTC file reported by
> Ilya.

Applied, thanks Fred!

willy



[PATCH] REGTEST/MINOR: Unexpected curl URL globling.

2018-07-13 Thread Frederic Lecaille

On 07/12/2018 05:52 PM, Willy Tarreau wrote:

On Thu, Jul 12, 2018 at 11:05:30AM +0200, Frederic Lecaille wrote:

This is a patch to fix the issue reported by Ilya Shipitsin in this thread.


Applied, thank you Fred.

Willy



Another patch to fix a remaining issue with this boring VTC file 
reported by Ilya.


Fred.
>From 1f3c909b3a649059a41d7fa97b4bb4b7be056c53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= 
Date: Fri, 13 Jul 2018 10:44:12 +0200
Subject: [PATCH] REGTEST/MINOR: Unexpected curl URL globling.

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/h0.vtc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reg-tests/ssl/h0.vtc b/reg-tests/ssl/h0.vtc
index 819f385..d1b48fb 100644
--- a/reg-tests/ssl/h0.vtc
+++ b/reg-tests/ssl/h0.vtc
@@ -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 $!"
-- 
2.1.4