openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c9910f26768b34545538ec858b20c359e7ddda45
parent e0a932abd67546442a31dbe99edcc4c0d15ca0bc
Author: Jan Dankert <devnull@localhost>
Date:   Tue,  6 Nov 2012 00:34:14 +0100

Fix: Server-Port aus Umgebungsvariable, besseres Fehlerhandling.

Diffstat:
auth/IdentAuth.class.php | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/auth/IdentAuth.class.php b/auth/IdentAuth.class.php @@ -20,7 +20,7 @@ class IdentAuth implements Auth return null; } - $line = $port.','.'80'."\r\n"; + $line = $port.','.$_SERVER['SERVER_PORT']."\r\n"; @fwrite($socket, $line); $line = @fgets($socket, 1000); // 1000 octets according to RFC 1413 fclose($socket); @@ -30,6 +30,8 @@ class IdentAuth implements Auth { if ( isset($array[3]) ) return trim($array[3]); + else + Logger::warn('Ident: Invalid ident server response: '.$line); return null; } @@ -37,6 +39,9 @@ class IdentAuth implements Auth { if ( isset($array[2]) ) Logger::warn('Ident: '.trim($array[2]) ); + else + Logger::warn('Ident: Invalid ident server response: '.$line); + return null; } else