Code

fix for non-numeric session id.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 11:49:13 +0000 (11:49 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Apr 2008 11:49:13 +0000 (11:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10461 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 08c14652e730e64ffb12b6746c3cf86236ef7863..965b1aa94f62f194ecafa249be7d5d7f089bc120 100755 (executable)
@@ -1426,6 +1426,7 @@ sub get_ldap_handle {
        my $ldap_handle;
 
        if (not defined $session_id ) { $session_id = 0 };
+       if ($session_id =~ /[^0-9]*/) { $session_id = 0 };
 
        if ($session_id == 0) {
                daemon_log("$session_id DEBUG: get_ldap_handle invoked without a session_id, create a new ldap_handle", 7);