From 5a38e63e132571b38aff54c6605ec9c1d881aba5 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Tue, 27 Feb 2001 07:46:01 +0000 Subject: fix for 47726: Doesn't display properly in IE5.5 because bug url & are not encoded patch submitted by rufus@nonstuff.de (Rufus) call QuoteXMLChars on bug_file_loc and attachment desc --- Bugzilla/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1c51af1a1..76ea56156 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -261,7 +261,7 @@ sub emitXML { "creation_ts", "qa_contact", "op_sys", "resolution", "bug_file_loc", "short_desc", "keywords", "status_whiteboard") { if ($self->{$field}) { - $xml .= " <$field>" . $self->{$field} . "\n"; + $xml .= " <$field>" . QuoteXMLChars($self->{$field}) . "\n"; } } @@ -292,7 +292,7 @@ sub emitXML { $xml .= " " . $self->{'attachments'}[$i]->{'attachid'} . "\n"; $xml .= " " . $self->{'attachments'}[$i]->{'date'} . "\n"; - $xml .= " " . $self->{'attachments'}[$i]->{'desc'} . "\n"; + $xml .= " " . QuoteXMLChars($self->{'attachments'}[$i]->{'desc'}) . "\n"; # $xml .= " " . $self->{'attachments'}[$i]->{'type'} . "\n"; # $xml .= " " . $self->{'attachments'}[$i]->{'data'} . "\n"; $xml .= " \n"; -- cgit v1.2.1