diff options
| author | David Aspinall | 1999-11-17 19:38:29 +0000 |
|---|---|---|
| committer | David Aspinall | 1999-11-17 19:38:29 +0000 |
| commit | 2d99b207327ce999ce011b15896885faad6e0965 (patch) | |
| tree | 99a931ba0803ae9a65b35c19cd978a45e7171a9d /html | |
| parent | 72ce989f5e85280d78d597534406ec686e9edb64 (diff) | |
Service patch to fix embarrassing privacy problem, 8-).
Diffstat (limited to 'html')
| -rw-r--r-- | html/fileshow.phtml | 6 |
1 files changed, 5 insertions, 1 deletions
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 "<pre>\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 "</pre>\n"; print "<hr>"; click_to_go_back(); |
