Bugzilla – Attachment 167030 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.17 KB, created by
Martin Renvoize (ashimema)
on 2024-05-22 12:54:41 UTC
(
hide
)
Description:
Bug 36875: Staff counterpart
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-05-22 12:54:41 UTC
Size:
1.17 KB
patch
obsolete
>From 9aa13582457cfbb6781a5a7405683bce09abeec9 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > tools/page.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/page.pl b/tools/page.pl >index d30288a6d0f..34d42fd7631 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