Bugzilla – Attachment 170243 Details for
Bug 37508
SQL reports should not show patron password hash if queried
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37508: [23.11] (follow-up) Throw error is password is in SQL query at all
Bug-37508-2311-follow-up-Throw-error-is-password-i.patch (text/plain), 957 bytes, created by
Aleisha Amohia
on 2024-08-12 21:20:12 UTC
(
hide
)
Description:
Bug 37508: [23.11] (follow-up) Throw error is password is in SQL query at all
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2024-08-12 21:20:12 UTC
Size:
957 bytes
patch
obsolete
>From 57e12bbddb9a03ff879a352b36798f8dd532833e Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleisha@catalyst.net.nz> >Date: Wed, 7 Aug 2024 04:37:25 +0000 >Subject: [PATCH] Bug 37508: [23.11] (follow-up) Throw error is password is in > SQL query at all > >Confirm tests pass t/db_dependent/Reports/Guided.t > >Signed-off-by: David Cook <dcook@prosentient.com.au> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Reports/Guided.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm >index f95243befc8..bcd36df6898 100644 >--- a/C4/Reports/Guided.pm >+++ b/C4/Reports/Guided.pm >@@ -615,6 +615,10 @@ sub execute_query { > }; > warn $@ if $@; > >+ if ( $sql =~ m/password/ ) { >+ return ( $sth, { passworderr => $sql } ); >+ } >+ > foreach my $column ( @{ $sth->{NAME_lc} } ) { > if ( $column eq 'password' ) { > return ( $sth, { passworderr => $column } ); >-- >2.39.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 37508
:
169806
|
169810
|
170121
|
170124
|
170125
|
170126
|
170127
|
170165
|
170171
|
170172
|
170173
|
170174
|
170175
|
170176
|
170229
|
170230
|
170241
|
170242
| 170243 |
170244
|
170245
|
170246
|
170247
|
170253