about summary refs log tree commit diff stats
path: root/rfs
diff options
context:
space:
mode:
authorglenda <glenda@9front.local>2021-01-14 19:32:05 +0000
committerglenda <glenda@9front.local>2021-01-14 19:32:05 +0000
commitcbebcb2f1021580857381269f8449eadbe607615 (patch)
treec3d8ed9a1e3ece40fba30f8d0508219468152758 /rfs
parentaacb3e890b1e719c15564b1272472a3c091da130 (diff)
downloadg9srv-cbebcb2f1021580857381269f8449eadbe607615.tar.gz
bug fix
Diffstat (limited to 'rfs')
-rwxr-xr-xrfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfs b/rfs
index 7476e91..a43a412 100755
--- a/rfs
+++ b/rfs
@@ -36,6 +36,7 @@ if(~ $mflag yes)
 if not
 	url=`{echo $fullurl | sed 's/gemini:\/\/[0-9 a-z .]*//
 			s/
//'}
+if(~ $url '') url=/
 if(test -f $webroot$url){
 	header 20 text/gemini
 	cat $webroot$url
@@ -49,4 +50,3 @@ if(test -f $webroot$url/index.gmi)
 }
 header 51 'file not found'
 
-