Bug 37508: (follow-up) Don't pass the column or sql containing password

This patch replaces these variables with a non-translatable message.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Aleisha Amohia 2024-08-08 23:53:47 +00:00 committed by Tomas Cohen Arazi
parent 2bd1c6651c
commit f61a6fe71a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 2 deletions

View File

@ -616,12 +616,12 @@ sub execute_query {
warn $@ if $@;
if ( $sql =~ m/password/ ) {
return ( $sth, { passworderr => $sql } );
return ( $sth, { passworderr => "Illegal column in SQL" } );
}
foreach my $column ( @{ $sth->{NAME_lc} } ) {
if ( $column eq 'password' ) {
return ( $sth, { passworderr => $column } );
return ( $sth, { passworderr => "Illegal column in results" } );
}
}