From 2ccf81dec1fbe4e215ea47700a4e006420318621 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 15 Mar 2015 13:50:28 +0100 Subject: Bug 902395: Enforce utf8 = true for all installations and remove the utf8 parameter r=dkl a=sgreen --- Bugzilla/Token.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Bugzilla/Token.pm') diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 84d86b8c6..a8358d4a7 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -185,9 +185,7 @@ sub issue_hash_token { my $token = join('*', @args); # Wide characters cause Digest::SHA to die. - if (Bugzilla->params->{'utf8'}) { - utf8::encode($token) if utf8::is_utf8($token); - } + utf8::encode($token) if utf8::is_utf8($token); $token = hmac_sha256_base64($token, Bugzilla->localconfig->{'site_wide_secret'}); $token =~ s/\+/-/g; $token =~ s/\//_/g; -- cgit v1.2.3-24-g4f1b