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> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
2d1f58242b
commit
ed6cb0f274
1 changed files with 2 additions and 2 deletions
|
@ -625,12 +625,12 @@ sub execute_query {
|
|||
return ( $sth, { queryerr => $sth->errstr } ) if ( $sth->err );
|
||||
|
||||
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 a new issue