From 37e0d4ab29c8483aab727b76effaec009b650153 Mon Sep 17 00:00:00 2001 From: BurnZeZ Date: Mon, 17 Jul 2017 04:34:14 +0000 Subject: [PATCH] hpost: fix field content mangling when newlines are present --- rc/bin/hpost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/bin/hpost b/rc/bin/hpost index e64679a87..b161d931b 100755 --- a/rc/bin/hpost +++ b/rc/bin/hpost @@ -63,7 +63,7 @@ fn menc { echo 'Content-Disposition: form-data; name="'$"k'"'$"cr echo $"cr i=$"i$"cr - sed 's!^[^:]+:!!' /env/i + sed '1s!^[^:]+:!!' /env/i } for(i in $af){ k=`{sed 's!@.*$!!; q' /env/i}