diff options
author | cyeh%bluemartini.com <> | 2001-02-27 08:46:01 +0100 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2001-02-27 08:46:01 +0100 |
commit | 5a38e63e132571b38aff54c6605ec9c1d881aba5 (patch) | |
tree | 8ea61eec1f94e830d6d3806ef6b272dab312cca9 | |
parent | 809e555be83513eb2965881a32f44a0ba855a566 (diff) | |
download | bugzilla-5a38e63e132571b38aff54c6605ec9c1d881aba5.tar.gz bugzilla-5a38e63e132571b38aff54c6605ec9c1d881aba5.tar.xz |
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
-rwxr-xr-x | Bug.pm | 4 | ||||
-rwxr-xr-x | Bugzilla/Bug.pm | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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} . "</$field>\n"; + $xml .= " <$field>" . QuoteXMLChars($self->{$field}) . "</$field>\n"; } } @@ -292,7 +292,7 @@ sub emitXML { $xml .= " <attachid>" . $self->{'attachments'}[$i]->{'attachid'} . "</attachid>\n"; $xml .= " <date>" . $self->{'attachments'}[$i]->{'date'} . "</date>\n"; - $xml .= " <desc>" . $self->{'attachments'}[$i]->{'desc'} . "</desc>\n"; + $xml .= " <desc>" . QuoteXMLChars($self->{'attachments'}[$i]->{'desc'}) . "</desc>\n"; # $xml .= " <type>" . $self->{'attachments'}[$i]->{'type'} . "</type>\n"; # $xml .= " <data>" . $self->{'attachments'}[$i]->{'data'} . "</data>\n"; $xml .= " </attachment>\n"; 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} . "</$field>\n"; + $xml .= " <$field>" . QuoteXMLChars($self->{$field}) . "</$field>\n"; } } @@ -292,7 +292,7 @@ sub emitXML { $xml .= " <attachid>" . $self->{'attachments'}[$i]->{'attachid'} . "</attachid>\n"; $xml .= " <date>" . $self->{'attachments'}[$i]->{'date'} . "</date>\n"; - $xml .= " <desc>" . $self->{'attachments'}[$i]->{'desc'} . "</desc>\n"; + $xml .= " <desc>" . QuoteXMLChars($self->{'attachments'}[$i]->{'desc'}) . "</desc>\n"; # $xml .= " <type>" . $self->{'attachments'}[$i]->{'type'} . "</type>\n"; # $xml .= " <data>" . $self->{'attachments'}[$i]->{'data'} . "</data>\n"; $xml .= " </attachment>\n"; |