aboutsummaryrefslogtreecommitdiffhomepage
path: root/html/smallpage.php
diff options
context:
space:
mode:
Diffstat (limited to 'html/smallpage.php')
-rw-r--r--html/smallpage.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/html/smallpage.php b/html/smallpage.php
index 64f538a3..ef165c6d 100644
--- a/html/smallpage.php
+++ b/html/smallpage.php
@@ -1,6 +1,12 @@
<?php
require('functions.php3');
small_header($title);
- include($file);
+ if (substr($file,0,1)=="." or
+ substr($file,0,1)=="/" or
+ substr($file,0,1)=="~") {
+ print "Sorry, can't show you that file!\n";
+ } else {
+ include($file);
+ }
footer();
?>