Code

no newline allowed in daemon_log
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 12:10:54 +0000 (12:10 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 12:10:54 +0000 (12:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10506 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 554f0915c409c34ccba60756424d7cf25f2c97b4..dfe8cb85ba2fd2305aa8c1b07701e2d1cd8a3adb 100755 (executable)
@@ -285,6 +285,7 @@ sub daemon_log {
             print STDERR "cannot open $log_file: $!";
             return }
             chomp($msg);
+                       $msg =~s/\n//g;   # no newlines are allowed in log messages, this is important for later log parsing
             if($level <= $verbose){
                 my ($seconds, $minutes, $hours, $monthday, $month,
                         $year, $weekday, $yearday, $sommertime) = localtime(time);