]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 771100: Unable to attach a file to a bug with perl 5.16
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 15 Aug 2012 19:27:47 +0000 (21:27 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 15 Aug 2012 19:27:47 +0000 (21:27 +0200)
r=dkl a=LpSolit

Bugzilla/CGI.pm

index febbff6182fb30e16fe0f205b87eedbd34d9799d..09907fb552fcc39f8c791c1850bf6c23c35be415 100644 (file)
@@ -350,7 +350,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;
 }