Bugzilla – Attachment 6406 Details for
Bug 6629
[security] insecure use of Cookie for language selection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[3.4.x] Bug 6629 fix for vulnerability
34x-Bug-6629-fix-for-vulnerability.patch (text/plain), 1.07 KB, created by
Chris Cormack
on 2011-11-25 07:50:12 UTC
(
hide
)
Description:
[3.4.x] Bug 6629 fix for vulnerability
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-11-25 07:50:12 UTC
Size:
1.07 KB
patch
obsolete
>From abaa59c246e0c66545c1394f73232ebf06120240 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 25 Nov 2011 20:38:35 +1300 >Subject: [PATCH] [3.4.x] Bug 6629 fix for vulnerability > >--- > C4/Templates.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index eaec07d..8d654df 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -180,7 +180,7 @@ sub themelanguage_lite { > # But, if there's a cookie set, obey it > $lang = $query->cookie('KohaOpacLanguage') > if ( defined $query and $query->cookie('KohaOpacLanguage') ); >- >+ $lang =~ s/[^a-zA-Z_-]*//; > # Fall back to English > my @languages; > if ( $interface eq 'intranet' ) { >@@ -324,6 +324,7 @@ sub themelanguage { > if $http_accept_language; > # But, if there's a cookie set, obey it > $lang = $query->cookie('KohaOpacLanguage') if (defined $query and $query->cookie('KohaOpacLanguage')); >+ $lang =~ s/[^a-zA-Z_-]*//; > # Fall back to English > my @languages; > if ($interface eq 'intranet') { >-- >1.7.5.4
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 6629
:
6398
|
6399
|
6400
|
6401
|
6402
|
6403
|
6404
|
6405
|
6406
|
6411
|
6412
|
6422
|
6423
|
6424
|
6427
|
6428
|
6432