From 10a78465d9b1fbb2efcafbc38cf203f2666c4036 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 May 2024 07:33:41 +0000 Subject: [PATCH] Bug 36875: Staff counterpart Same change. Signed-off-by: Marcel de Rooy Signed-off-by: Victor Grousset/tuxayo --- 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