Bugzilla – Attachment 17179 Details for
Bug 6554
Resolve encoding problems with corrected UTF8 handling in templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6554: Followup for decoding in userenv
Bug-6554-Followup-for-decoding-in-userenv.patch (text/plain), 1.17 KB, created by
Marcel de Rooy
on 2013-04-04 06:47:32 UTC
(
hide
)
Description:
Bug 6554: Followup for decoding in userenv
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-04-04 06:47:32 UTC
Size:
1.17 KB
patch
obsolete
>From fc72fec7289e7e502293cb95a8b2d9ed9e649cbb Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 4 Apr 2013 08:34:47 +0200 >Subject: [PATCH] Bug 6554: Followup for decoding in userenv >Content-Type: text/plain; charset=utf-8 > >Thanks to Colin. He reported this problem: >Modification of a read-only value attempted at C4/Context.pm line 1107. >$_ is an alias to a value which may be read-only in the map call. >Could not reproduce this error, but this should prevent it. >--- > C4/Context.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 4d170b2..4097321 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -1105,7 +1105,7 @@ set_userenv is called in Auth.pm > #' > sub set_userenv { > my ($usernum, $userid, $usercnum, $userfirstname, $usersurname, $userbranch, $branchname, $userflags, $emailaddress, $branchprinter, $persona)= >- map { utf8::decode($_); $_ } # CGI::Session doesn't handle utf-8, so we decode it here >+ map { my $a= $_; utf8::decode($a); $a; } # CGI::Session doesn't handle utf-8, so we decode it here > @_; > my $var=$context->{"activeuser"} || ''; > my $cell = { >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6554
:
4558
|
4560
|
4561
|
4562
|
4563
|
4564
|
5962
|
6041
|
6065
|
6070
|
6071
|
6072
|
6073
|
6076
|
6077
|
6078
|
6079
|
6080
|
6083
|
6084
|
6085
|
6108
|
10118
|
16780
|
16797
|
16857
|
16905
|
16929
|
16930
|
16931
|
16932
|
16960
|
16961
|
16962
|
16963
|
16964
|
16966
|
16968
|
16969
|
16984
|
16985
|
16986
|
16987
|
16988
|
16989
|
17179
|
17186
|
17187
|
17327
|
17328
|
18746
|
18747
|
18749
|
18750
|
21318
|
21399
|
21478
|
21488
|
21506
|
21509
|
21581
|
21629
|
21631
|
21632
|
21682
|
21937
|
21955
|
21978
|
21980
|
21981
|
23107
|
23140