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:
parent
2bd1c6651c
commit
f61a6fe71a
|
|
@ -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" } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue