}
}
- 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'});
push(@list, &::FetchOneColumn());
}
if (@list) {
- $self->{'keywords'} = &::html_quote(join(', ', @list));
+ $self->{'keywords'} = join(', ', @list);
}
}
my %attach;
$attach{'attachid'} = $attachid;
$attach{'date'} = $date;
- $attach{'desc'} = &::html_quote($desc);
+ $attach{'desc'} = $desc;
push @attachments, \%attach;
}
}
my %longdesc;
$longdesc{'who'} = $who;
$longdesc{'bug_when'} = $bug_when;
- $longdesc{'thetext'} = &::html_quote($thetext);
+ $longdesc{'thetext'} = $thetext;
push @longdescs, \%longdesc;
}
if (@longdescs) {
}
sub QuoteXMLChars {
+ $_[0] =~ s/&/&/g;
$_[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]);
}
}
}
- 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'});
push(@list, &::FetchOneColumn());
}
if (@list) {
- $self->{'keywords'} = &::html_quote(join(', ', @list));
+ $self->{'keywords'} = join(', ', @list);
}
}
my %attach;
$attach{'attachid'} = $attachid;
$attach{'date'} = $date;
- $attach{'desc'} = &::html_quote($desc);
+ $attach{'desc'} = $desc;
push @attachments, \%attach;
}
}
my %longdesc;
$longdesc{'who'} = $who;
$longdesc{'bug_when'} = $bug_when;
- $longdesc{'thetext'} = &::html_quote($thetext);
+ $longdesc{'thetext'} = $thetext;
push @longdescs, \%longdesc;
}
if (@longdescs) {
}
sub QuoteXMLChars {
+ $_[0] =~ s/&/&/g;
$_[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]);
}
$zz = %::target_milestone;
}
+# XML::Parser automatically unquotes characters when it
+# parses the XML, so this routine shouldn't be needed
+# for anything (see bug 109530).
sub UnQuoteXMLChars {
$_[0] =~ s/&/&/g;
$_[0] =~ s/</</g;
$_[0] =~ s/>/>/g;
- $_[0] =~ s/'/'/g;
- $_[0] =~ s/"/"/g;
+ $_[0] =~ s/'/'/g; # ' # Darned emacs colors
+ $_[0] =~ s/"/"/g; # " # Darned emacs colors
# $_[0] =~ s/([\x80-\xFF])/&XmlUtf8Encode(ord($1))/ge;
return($_[0]);
}
$long_description .= "$sorted_descs[$z]->{'bug_when'}";
$long_description .= " ----\n\n";
}
- $long_description .= UnQuoteXMLChars($sorted_descs[$z]->{'thetext'});
+ $long_description .= $sorted_descs[$z]->{'thetext'};
$long_description .= "\n";
}
if ( (defined $bug_fields{'bug_file_loc'}) && ($bug_fields{'bug_file_loc'}) ){
push (@query, "bug_file_loc");
- push (@values, SqlQuote(UnQuoteXMLChars($bug_fields{'bug_file_loc'})));
+ push (@values, SqlQuote($bug_fields{'bug_file_loc'}));
}
if ( (defined $bug_fields{'short_desc'}) && ($bug_fields{'short_desc'}) ){
push (@query, "short_desc");
- push (@values, SqlQuote(UnQuoteXMLChars($bug_fields{'short_desc'})) );
+ push (@values, SqlQuote($bug_fields{'short_desc'}) );
}