Code

Allow to create departments wirh quotes in their names
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 12:49:24 +0000 (12:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Apr 2010 12:49:24 +0000 (12:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17844 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_department.inc

index c44ee7a996a8a2fd2d97a0163268053d391c6400..6b07d07ee0833f2a5ae9986ab1c8d709bf479f7d 100644 (file)
@@ -238,7 +238,7 @@ class department extends plugin
     $this->baseSelector->setBases($tmp);
 
     foreach ($this->attributes as $val){
-      $smarty->assign("$val", $this->$val);
+      $smarty->assign("$val", htmlentities($this->$val));
     }
     $smarty->assign("base", $this->baseSelector->render());