From a6866a0c08c5b0b853d2385ec2f28a0832cc3241 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 7 Apr 2004 13:51:50 +0000 Subject: [PATCH] Check class for display of XML/HTML --- client/client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index 429a1fe..d0f9ad5 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.237 2004-04-07 13:47:59 adam Exp $ + * $Id: client.c,v 1.238 2004-04-07 13:51:50 adam Exp $ */ #include @@ -747,8 +747,10 @@ static void display_record(Z_External *r) else if (r->which == Z_External_octet) { const char *octet_buf = (char*)r->u.octet_aligned->buf; - if (ent->value == VAL_TEXT_XML || ent->value == VAL_APPLICATION_XML || - ent->value == VAL_HTML) + if (ent->oclass == CLASS_RECSYN && + (ent->value == VAL_TEXT_XML || + ent->value == VAL_APPLICATION_XML || + ent->value == VAL_HTML)) { print_record((const unsigned char *) octet_buf, r->u.octet_aligned->len); -- 1.7.10.4