From c4383d9f715594937f4cb58254d9844b78241c2b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Nov 2005 10:58:57 +0000 Subject: [PATCH] Added hotfix for hotplug deletion. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1904 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_kioskManagementDialog.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/personal/environment/class_kioskManagementDialog.inc b/plugins/personal/environment/class_kioskManagementDialog.inc index 8755fcc8a..947e662bc 100644 --- a/plugins/personal/environment/class_kioskManagementDialog.inc +++ b/plugins/personal/environment/class_kioskManagementDialog.inc @@ -53,7 +53,7 @@ class kioskManagementDialog extends plugin * Delete selected file form $this->baseDir */ if((isset($_POST['profileDel']))&&(isset($_POST['gotoKioskProfile']))){ - $filename = $this->baseDir."/".$_POST['gotoKioskProfile']; + $filename = $this->baseDir."/".preg_replace("/^.*\//i","",$_POST['gotoKioskProfile']); $res = @unlink($filename); if(!$res){ -- 2.30.2