Bugzilla – Attachment 170124 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: (follow-up) Throw error is password is in SQL query at all
Bug-37508-follow-up-Throw-error-is-password-is-in-.patch (text/plain), 880 bytes, created by
Aleisha Amohia
on 2024-08-07 04:38:32 UTC
(
hide
)
Description:
Bug 37508: (follow-up) Throw error is password is in SQL query at all
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2024-08-07 04:38:32 UTC
Size:
880 bytes
patch
obsolete
>From 31985214d9c7c05508004bf6e762776b36295099 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: (follow-up) Throw error is password is in SQL > query at all > >Confirm tests pass t/db_dependent/Reports/Guided.t >--- > C4/Reports/Guided.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm >index 8558666041e..2bbccff3a33 100644 >--- a/C4/Reports/Guided.pm >+++ b/C4/Reports/Guided.pm >@@ -624,6 +624,10 @@ sub execute_query { > > return ( $sth, { queryerr => $sth->errstr } ) if ( $sth->err ); > >+ 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