Code

all incoming msgs which are processed with event forwarding and with target address...
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 10:10:22 +0000 (10:10 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 10:10:22 +0000 (10:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10862 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index b14f87ab68a1dca3f1ef88263e74f8ce961fe541..39c26cf448f4360355389b831550a444d95e9116 100644 (file)
@@ -439,8 +439,11 @@ sub process_incoming_msg {
                         # client is registered for this event, deliver this message to client
                         $header =~ s/^answer_//;
                         if ($client_events =~ /,$header,/) {
-                            $msg =~ s/<header>answer_/<header>/;
-                            $msg =~ s/<target>\S+<\/target>/<target>GOSA<\/target>/;
+                            # answer message finally arrived destination server, so forward messages to GOsa
+                            if ($target eq $main::server_address) {        
+                                $msg =~ s/<header>answer_/<header>/;
+                                $msg =~ s/<target>\S+<\/target>/<target>GOSA<\/target>/;
+                            }
                             @out_msg_l = ( $msg );
 
                         # client is not registered for this event, set error