From: hickert Date: Thu, 10 Nov 2005 10:58:57 +0000 (+0000) Subject: Added hotfix for hotplug deletion. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c4383d9f715594937f4cb58254d9844b78241c2b;p=gosa.git Added hotfix for hotplug deletion. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1904 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){