summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-01-28 00:39:23 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-01-28 00:39:23 +0100
commit02414dc53b2f932d0477ef03d3913bc12ff924dd (patch)
tree1d008bd9d44ed7c1fbb42434f61aea7b77e4571b /Bugzilla/Bug.pm
parent2fdfa60f167cbbee507351fba19c8e01880d9ae6 (diff)
parenta8fd4c69ba96a7f751859db566bda85142e0beb2 (diff)
downloadbugzilla-02414dc53b2f932d0477ef03d3913bc12ff924dd.tar.gz
bugzilla-02414dc53b2f932d0477ef03d3913bc12ff924dd.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 2361e7343..5fb4551e4 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2866,14 +2866,13 @@ sub add_see_also {
$class->check_required_create_fields($params);
my $field_values = $class->run_create_validators($params);
- $uri = $field_values->{value};
- $field_values->{value} = $uri->as_string;
+ my $value = $field_values->{value}->as_string;
+ trick_taint($value);
+ $field_values->{value} = $value;
# We only add the new URI if it hasn't been added yet. URIs are
# case-sensitive, but most of our DBs are case-insensitive, so we do
# this check case-insensitively.
- my $value = $uri->as_string;
-
if (!grep { lc($_->name) eq lc($value) } @{ $self->see_also }) {
my $privs;
my $can = $self->check_can_change_field('see_also', '', $value, \$privs);