summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-15 21:29:25 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-15 21:29:25 +0200
commit872088062e1be624952038424854b5bd454d6307 (patch)
tree0600daba4332015af25b50d13f7b90a231467c4c /Bugzilla
parent36bfbfd3252599a596470c05a359dfb680c85159 (diff)
downloadbugzilla-872088062e1be624952038424854b5bd454d6307.tar.gz
bugzilla-872088062e1be624952038424854b5bd454d6307.tar.xz
Bug 771100: Unable to attach a file to a bug with perl 5.16
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index e0e1c40ba..21d4303a8 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -353,7 +353,7 @@ sub param {
sub _fix_utf8 {
my $input = shift;
# The is_utf8 is here in case CGI gets smart about utf8 someday.
- utf8::decode($input) if defined $input && !utf8::is_utf8($input);
+ utf8::decode($input) if defined $input && !ref $input && !utf8::is_utf8($input);
return $input;
}