From d81f3415cadf1852de1e961cacd12d57afc94657 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 29 Aug 2006 22:26:57 +0000 Subject: [PATCH] relative+cleaned paths --- admin/xmldb/actions/template/template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/xmldb/actions/template/template.class.php b/admin/xmldb/actions/template/template.class.php index f54f382739..c187dfa3d6 100644 --- a/admin/xmldb/actions/template/template.class.php +++ b/admin/xmldb/actions/template/template.class.php @@ -61,8 +61,8 @@ class template extends XMLDBAction { /// Do the job, setting result as needed /// Get the dir containing the file - $dirpath = required_param('dir', PARAM_CLEAN); - $dirpath = stripslashes_safe($dirpath); + $dirpath = required_param('dir', PARAM_PATH); + $dirpath = $CFG->dirroot . stripslashes_safe($dirpath); /// Get the correct dirs if (!empty($XMLDB->dbdirs)) { -- 2.39.5