Code

Ensure that no linebreaks will be saved within gotomasses tasks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 09:16:56 +0000 (09:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 09:16:56 +0000 (09:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7104 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_gotomasses.inc

index 677b92cf58d63ebbc1bfd2073a6ae0a0acdec2bd..51822cf1761259ffbeb0d410e48cfc5b5c52cd8d 100644 (file)
@@ -369,7 +369,7 @@ class gotomasses extends plugin
       $str .= str_pad($task['OGroup'] ,5," ")." ";
       if($task['Action'] == "initial_install"){
         foreach($task['Initial_Target'] as $target){
-          $str .= $target['MAC'].",".$target['IP'].",".$target['NAME'].";";
+          $str .= trim($target['MAC']).",".trim($target['IP']).",".trim($target['NAME']).";";
         }
       }else{
         foreach($task['Target'] as $target){