From: <ple...@tr...> - 2004-11-22 22:26:10
|
Log Message: ----------- letting those scruffy Safari users in Modified Files: -------------- krang/lib/Krang: Handler.pm Revision Data ------------- Index: Handler.pm =================================================================== RCS file: /usr/local/krang-cvs/krang/lib/Krang/Handler.pm,v retrieving revision 1.26 retrieving revision 1.27 diff -Llib/Krang/Handler.pm -Llib/Krang/Handler.pm -u -r1.26 -r1.27 --- lib/Krang/Handler.pm +++ lib/Krang/Handler.pm @@ -203,14 +203,15 @@ ($bd->browser_string eq 'Firefox' and (($bd->major >= 1) or ($bd->minor == .1 or $bd->minor >= .8)) - ) + ) or + ($bd->browser_string eq 'Safari' and $bd->major >= 1) ) { return OK; } # failure debug("Unsupported browser detected: " . $r->header_in('User-Agent')); - $r->custom_response(FORBIDDEN, "<h1>Unsupported browser detected.</h1>This application requires Mozilla, Firefox, Netscape 6+, or Internet Explorer 5+."); + $r->custom_response(FORBIDDEN, "<h1>Unsupported browser detected.</h1>This application requires Mozilla, Firefox, Safari 1+, Netscape 6+, or Internet Explorer 5+."); return FORBIDDEN; } |