From: cyeh%bluemartini.com <> Date: Tue, 27 Feb 2001 07:46:01 +0000 (+0000) Subject: fix for 47726: Doesn't display properly in IE5.5 because bug url & are not encoded X-Git-Tag: bugzilla-2.12~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a38e63e132571b38aff54c6605ec9c1d881aba5;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bug.pm b/Bug.pm index 1c51af1a1e..76ea561569 100755 --- a/Bug.pm +++ b/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"; diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1c51af1a1e..76ea561569 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";