Code

bugfix: change !=~ expression to not =~
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Oct 2008 08:21:47 +0000 (08:21 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Oct 2008 08:21:47 +0000 (08:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12597 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 4f15e34c8f83f3771b5d43726ee2a55f7900d290..e0c98a709bc1ac622436b37aa2662d207deb066e 100755 (executable)
@@ -603,7 +603,7 @@ sub check_outgoing_xml_validity {
         }
 
                                # Check if source contains hostname instead of ip address
-                               if($source !=~ /^[a-z0-9\.]+:\d+$/i) {
+                               if(not $source =~ /^[a-z0-9\.]+:\d+$/i) {
                                                my ($hostname,$port) = split(/:/, $source);
                                                my $ip_address = inet_ntoa(scalar gethostbyname($hostname));
                                                if(defined($ip_address) && $ip_address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ && $port =~ /^\d+$/) {