From a173df8003e8613a1626c19710ff9627cd060ce9 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 3 Nov 2009 07:29:25 +0000 Subject: [PATCH] Updated department listing in class_listing.inc -Ensure that we can select departments with special chars like ' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14725 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index fbcc9b1dd..39342d9fe 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -450,7 +450,7 @@ class listing { // Save base if (isset($_POST['BASE']) && $this->baseMode) { - $base= validate($_POST['BASE']); + $base= get_post('BASE'); if (isset($this->bases[$base])) { $this->base= $base; session::global_set("CurrentMainBase", $this->base); @@ -644,8 +644,10 @@ class listing { $selected= " selected"; $found= true; } - $result.= ""; + $key = htmlentities($key,ENT_QUOTES); + $result.= "\n"; } + $result.= ""; // Reset the currently used base to the first DN we found if there -- 2.30.2