From 7eae7595909a49d4355453c73638151097a53f20 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 3 Sep 2005 16:36:05 +0000 Subject: - modification : less configuration parameters in administration screen. These parameters are move to include/config_default.inc.php. - new : ability to add a single picture to caddie from picture.php - new : contextual help, only a few pages are available. - new : ability to delete users from admin/user_list - modification : reorganization of configuration file - new : configuration parameter use_exif_mapping - improvement : MOD hidemail added to standard git-svn-id: http://piwigo.org/svn/trunk@858 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/template.php') diff --git a/include/template.php b/include/template.php index 14f5d4349..f82937d99 100644 --- a/include/template.php +++ b/include/template.php @@ -269,7 +269,8 @@ class Template { function make_filename($filename) { // Check if it's an absolute or relative path. - if (substr($filename, 0, 1) != '/') + // if (substr($filename, 0, 1) != '/') + if (preg_match('/^[a-z_]/i', $filename)) { $filename = $this->root.'/'.$filename; } -- cgit v1.2.3