Bugzilla – Attachment 166919 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.10 KB, created by
Victor Grousset/tuxayo
on 2024-05-19 03:54:13 UTC
(
hide
)
Description:
Bug 36875: Staff counterpart
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-05-19 03:54:13 UTC
Size:
1.10 KB
patch
obsolete
>From 10a78465d9b1fbb2efcafbc38cf203f2666c4036 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 > >Same change. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > 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.45.1
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