Bugzilla – Attachment 166806 Details for
Bug 36875
SQL injection in additional content pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36875: Staff counterpart
Bug-36875-Staff-counterpart.patch (text/plain), 1.08 KB, created by
Marcel de Rooy
on 2024-05-16 07:34:48 UTC
(
hide
)
Description:
Bug 36875: Staff counterpart
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-05-16 07:34:48 UTC
Size:
1.08 KB
patch
obsolete
>From 734af8a185fffa03d9d9d82f600510e15df01b01 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 16 May 2024 07:33:41 +0000 >Subject: [PATCH] Bug 36875: Staff counterpart >Content-Type: text/plain; charset=utf-8 > >Same change. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > tools/page.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/page.pl b/tools/page.pl >index d30288a6d0..34d42fd763 100755 >--- a/tools/page.pl >+++ b/tools/page.pl >@@ -33,7 +33,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > ); > > my $page_id = $query->param('page_id'); >-my $lang = $query->param('language'); > > my $branch = C4::Context->userenv->{'branch'}; > >@@ -44,7 +43,8 @@ if ( !$page || $page->category ne 'pages' || $page->branchcode && $page->branchc > exit; > } > >-my $content = $page->translated_content( $lang || C4::Languages::getlanguage($query) ); >+# Sanitize language via getlanguage >+my $content = $page->translated_content( C4::Languages::getlanguage($query) ); > > $template->param( page => $content ); > >-- >2.30.2
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 36875
:
166804
|
166805
|
166806
|
166832
|
166833
|
166872
|
166873
|
166874
|
166875
|
166918
|
166919
|
166920
|
166921
|
167029
|
167030
|
167031
|
167032