From: hickert Date: Thu, 28 Jul 2005 06:46:13 +0000 (+0000) Subject: Added $ to preg_replace, only delete from line end X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a06dfe9233c6e7c80b49ccddf9a23355db2df51;p=gosa.git Added $ to preg_replace, only delete from line end git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1020 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index cbfef6f7d..67c6ca84c 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -76,13 +76,13 @@ class departmentManagement extends plugin if(preg_match("/dep_del.*/",$key)){ $s_action = "del"; $s_entry = preg_replace("/dep_".$s_action."_/i","",$key); - $s_entry = preg_replace("/_.*/","",$s_entry); + $s_entry = preg_replace("/_.*$/","",$s_entry); $s_entry = base64_decode($s_entry); // Post for edit }elseif(preg_match("/dep_edit_.*/",$key)){ $s_action="edit"; $s_entry = preg_replace("/dep_".$s_action."_/i","",$key); - $s_entry = preg_replace("/_.*/","",$s_entry); + $s_entry = preg_replace("/_.*$/","",$s_entry); $s_entry = base64_decode($s_entry); // Post for new }elseif(preg_match("/dep_new.*/",$key)){