Bugzilla – Attachment 166805 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: Prevent SQL injection from additional contents
Bug-36875-Prevent-SQL-injection-from-additional-co.patch (text/plain), 953 bytes, created by
Jonathan Druart
on 2024-05-16 07:31:45 UTC
(
hide
)
Description:
Bug 36875: Prevent SQL injection from additional contents
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-05-16 07:31:45 UTC
Size:
953 bytes
patch
obsolete
>From ec73d659f68b8f1e8a18ae775f02c167c8380015 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 May 2024 09:31:25 +0200 >Subject: [PATCH] Bug 36875: Prevent SQL injection from additional contents > >--- > Koha/AdditionalContent.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/AdditionalContent.pm b/Koha/AdditionalContent.pm >index 3aca46ad875..0ee7afa57bf 100644 >--- a/Koha/AdditionalContent.pm >+++ b/Koha/AdditionalContent.pm >@@ -136,7 +136,7 @@ sub translated_content { > my ( $self, $lang ) = @_; > my $content = $self->translated_contents->search( > { lang => [ 'default', ( $lang ? $lang : () ) ] }, >- { ( $lang ? ( order_by => \[ "field(lang, '" . $lang . "', 'default')" ] ) : () ) } >+ { ( $lang ? ( order_by => \[ "field(lang, " . C4::Context->dbh->quote($lang) . ", 'default')" ] ) : () ) } > )->next; > return $content; > } >-- >2.34.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