ref: 37e0d4ab29c8483aab727b76effaec009b650153
parent: e7e18aac7f96e8575f257977582ac981ad278c06
author: BurnZeZ <brz-9dev@feline.systems>
date: Mon Jul 17 00:34:14 EDT 2017
hpost: fix field content mangling when newlines are present
--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -63,7 +63,7 @@
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}