From c4f3088d0fc3e1d5d4cd211295e641816ed11979 Mon Sep 17 00:00:00 2001 From: oes Date: Thu, 26 Jul 2001 10:09:46 +0000 Subject: [PATCH] Made browser detection a little less naive --- filters.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/filters.c b/filters.c index a3a523ca..e268d6dd 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.23 2001/07/23 13:40:12 oes Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.24 2001/07/25 17:22:51 oes Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -38,6 +38,9 @@ const char filters_rcs[] = "$Id: filters.c,v 1.23 2001/07/23 13:40:12 oes Exp $" * * Revisions : * $Log: filters.c,v $ + * Revision 1.24 2001/07/25 17:22:51 oes + * Added workaround for Netscape bug that prevents display of page when loading a component fails. + * * Revision 1.23 2001/07/23 13:40:12 oes * Fixed bug that caused document body to be dropped when pcrs joblist was empty. * @@ -515,7 +518,10 @@ struct http_response *block_url(struct client_state *csp) * JavaScript or style sheet fails. So make it appear * as if it succeeded. */ - if (csp->http->user_agent && !strncmpic(csp->http->user_agent, "mozilla", 7)) + if (csp->http->user_agent + && !strncmpic(csp->http->user_agent, "mozilla", 7) + && !strstr(csp->http->user_agent, "compatible") + && !strstr(csp->http->user_agent, "Opera")) { rsp->status = strdup("200 Request for blocked URL"); } -- 2.39.2