From a0f65b004b93045d321d371687d826479c2b5404 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Mon, 26 Nov 2001 22:16:10 +0000 Subject: Bug 109530 - xml.cgi was quoting stuff way too much. This is because it was incorrectly quoted in Bug.pm r= justdave, louie --- Bugzilla/Bug.pm | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ea159ccdc..670b274eb 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -147,14 +147,6 @@ sub initBug { } } - if ($self->{'short_desc'}) { - $self->{'short_desc'} = QuoteXMLChars( $self->{'short_desc'} ); - } - - if (defined $self->{'status_whiteboard'}) { - $self->{'status_whiteboard'} = QuoteXMLChars($self->{'status_whiteboard'}); - } - $self->{'assigned_to'} = &::DBID_to_name($self->{'assigned_to'}); $self->{'reporter'} = &::DBID_to_name($self->{'reporter'}); @@ -183,7 +175,7 @@ sub initBug { push(@list, &::FetchOneColumn()); } if (@list) { - $self->{'keywords'} = &::html_quote(join(', ', @list)); + $self->{'keywords'} = join(', ', @list); } } @@ -198,7 +190,7 @@ sub initBug { my %attach; $attach{'attachid'} = $attachid; $attach{'date'} = $date; - $attach{'desc'} = &::html_quote($desc); + $attach{'desc'} = $desc; push @attachments, \%attach; } } @@ -215,7 +207,7 @@ sub initBug { my %longdesc; $longdesc{'who'} = $who; $longdesc{'bug_when'} = $bug_when; - $longdesc{'thetext'} = &::html_quote($thetext); + $longdesc{'thetext'} = $thetext; push @longdescs, \%longdesc; } if (@longdescs) { @@ -319,11 +311,11 @@ sub EmitDependList { } sub QuoteXMLChars { + $_[0] =~ s/&/&/g; $_[0] =~ s//>/g; $_[0] =~ s/'/'/g; $_[0] =~ s/"/"/g; - $_[0] =~ s/&/&/g; # $_[0] =~ s/([\x80-\xFF])/&XmlUtf8Encode(ord($1))/ge; return($_[0]); } -- cgit v1.2.3-24-g4f1b