From 2d99b207327ce999ce011b15896885faad6e0965 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 17 Nov 1999 19:38:29 +0000 Subject: Service patch to fix embarrassing privacy problem, 8-). --- html/fileshow.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/fileshow.phtml b/html/fileshow.phtml index 5560a911..5859634a 100644 --- a/html/fileshow.phtml +++ b/html/fileshow.phtml @@ -5,7 +5,11 @@ if ($title=="") { $title = $filename; }; small_header($title); print "
\n";
-  markup_plain_text($filename);
+  if (substr($filename,0,1)=="." or substr($filename,0,1)=="/") {
+     print "Sorry, can't show you that file!\n"; 
+  } else {
+     markup_plain_text($filename);
+  }
   print "
\n"; print "
"; click_to_go_back(); -- cgit v1.2.3