summaryrefslogtreecommitdiff
path: root/rc/bin/hpost
diff options
context:
space:
mode:
authorBurnZeZ <brz-9dev@feline.systems>2017-07-17 04:34:14 +0000
committerBurnZeZ <brz-9dev@feline.systems>2017-07-17 04:34:14 +0000
commit37e0d4ab29c8483aab727b76effaec009b650153 (patch)
tree2c2c2a2f5637b598e4bda17baf6dcf5fc09d317b /rc/bin/hpost
parente7e18aac7f96e8575f257977582ac981ad278c06 (diff)
hpost: fix field content mangling when newlines are present
Diffstat (limited to 'rc/bin/hpost')
-rwxr-xr-xrc/bin/hpost2
1 files changed, 1 insertions, 1 deletions
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}