shithub: riscv

Download patch

ref: 2e802acf34adf5d8ce90a89c266d331f6c22c880
parent: 242007de7cbd9ab17d5e33037b7edf0db578096a
author: cinap_lenrek <[email protected]>
date: Sat Nov 15 20:59:29 EST 2014

hpost: break up tags with newlines to avoid sed line buffer limit

--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -107,7 +107,8 @@
 	n=(1 $n)
 }
 a$#n=''
-hget $url | uhtml | sed '
+hget $url | uhtml | tr '>' '
+' | sed '
 s!^(TAG|ATT)! \1!g;		# escape our inline signaling
 s!<[ 	]*!\nTAG !g;		# find starttags, mark with TAG name ...
 s!>[^>"'']*$!!g;		# remove garbage after the tag