From 49ec304401e9fec5c158266e6a20041938a4408f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 24 Nov 2008 13:50:13 +0000 Subject: [PATCH] Updated FAI template entry. -Indentified problem with truncated template paths && upload. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13016 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc index 46367d30b..ad1451a36 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc @@ -186,7 +186,7 @@ class faiTemplateEntry extends plugin /* Check if we are allowed to change the destination directory */ if($this->acl_is_writeable("cn")){ - $cur_path = dirname($cur_path).'/'.get_post('templateFile'); + $cur_path = preg_replace("/[^\/]*$/","",$cur_path).get_post('templateFile'); } $cur_path= str_replace("//","/",$cur_path); if(trim($cur_path,"/") == ""){ -- 2.30.2