Code

Strip trailing zeros
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Dec 2007 14:04:49 +0000 (14:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Dec 2007 14:04:49 +0000 (14:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8017 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/daemon/gosa-sd

index 484111b258d95a87a8c170c559ab6843d7ae71dd..b291b042586fee7e0c22896f8814d2f17c80e967 100755 (executable)
@@ -512,12 +512,12 @@ sub get_processing_child {
                     no strict "refs";
                     my $answer;
                     while( my ($module, $tag_hash) = each(%$known_modules)) {
-                        if(exists $known_modules->{$module}->{server_packages}) {
+                        #if(exists $known_modules->{$module}->{server_packages}) {
                             my $tmp = &{ $module."::process_incoming_msg" }($msg);
                             if (defined $tmp) {
                                 $answer = $tmp;
                             }
-                        }
+                        #}
                     }        
 
                     &print_known_daemons();
@@ -900,6 +900,7 @@ sub decrypt_msg {
     my $msg = $my_cipher->decrypt($crypted_msg);
     #my $msg = $crypted_msg;
     #$msg =~ s/^a*//gi;
+    $msg =~ s/\0*$//gi;
     return $msg;
 }