shithub: rc-gemd

Download patch

ref: 8b3ea55d7a984e1241b211036a42ee62392616d5
parent: a2e3a1a4993a12d21ab28ffc55ebb95d97ac7970
author: Jacob Moody <moody@posixcafe.org>
date: Mon May 17 00:26:24 EDT 2021

path name should be cleaned, prevents $fs_root escape

--- a/rc-gemd
+++ b/rc-gemd
@@ -16,6 +16,7 @@
 
 query=`{echo $location | sed 's,[^?]*\??,,'}
 location=`{echo $location | sed 's,\?.*,,'}
+location=`{cleanname $location}
 
 echo request from `{sed 's/!.*//' $net/remote} to $url >[1=2]