[SimBot-commits] CVS: simbot/plugins httpd.pl,1.23,1.24
Status: Abandoned
Brought to you by:
kstange
|
From: Kevin S. <ks...@us...> - 2005-11-14 07:40:20
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20910/plugins Modified Files: httpd.pl Log Message: If the HTTPd receives a request for something without a leading slash, avoid a warning. Not that this should happen unless we get probed by someone looking for open HTTP proxies. Index: httpd.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/httpd.pl,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -p -r1.23 -r1.24 --- httpd.pl 10 Nov 2005 13:23:25 -0000 1.23 +++ httpd.pl 14 Nov 2005 07:40:11 -0000 1.24 @@ -62,7 +62,7 @@ sub index_handler { &debug( 3, 'httpd: handling request for ' . $request->uri - . ", req root $req_root\n" ); + . (defined $req_root ? ", req root $req_root\n" : "\n")); my $code = 500; # An error by default. if ( $req_root && defined $SimBot::hash_plugin_httpd_pages{$req_root} ) { |