summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-11-26 23:16:10 +0100
committerjake%acutex.net <>2001-11-26 23:16:10 +0100
commita0f65b004b93045d321d371687d826479c2b5404 (patch)
tree592289388054532b9226ba6f0e22905c82bb4f54 /Bugzilla
parent33d983e6f62280cd8714a954a842239ef7cd6eb9 (diff)
downloadbugzilla-a0f65b004b93045d321d371687d826479c2b5404.tar.gz
bugzilla-a0f65b004b93045d321d371687d826479c2b5404.tar.xz
Bug 109530 - xml.cgi was quoting stuff way too much. This is because it was incorrectly quoted in Bug.pm
r= justdave, louie
Diffstat (limited to 'Bugzilla')
-rwxr-xr-xBugzilla/Bug.pm16
1 files changed, 4 insertions, 12 deletions
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/&/&amp;/g;
$_[0] =~ s/</&lt;/g;
$_[0] =~ s/>/&gt;/g;
$_[0] =~ s/'/&apos;/g;
$_[0] =~ s/"/&quot;/g;
- $_[0] =~ s/&/&amp;/g;
# $_[0] =~ s/([\x80-\xFF])/&XmlUtf8Encode(ord($1))/ge;
return($_[0]);
}