From ea91b89fb0819b618570adff42c06b1651e0b79a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 7 Jun 2014 15:19:04 +0200 Subject: [PATCH] modules/MSGBASE: quote table name ("24000_GER") --- modules/MSGBASE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/MSGBASE.pm b/modules/MSGBASE.pm index 1b5845f..dd79dcf 100644 --- a/modules/MSGBASE.pm +++ b/modules/MSGBASE.pm @@ -160,7 +160,7 @@ sub mail_add($$) } # store mail in msgbase - my $rows = $handle->{dbh}->do("INSERT INTO $handle->{table} + my $rows = $handle->{dbh}->do("INSERT INTO '$handle->{table}' ('area', 'from', 'fname', 'to', 'tname', 'date', 'time', 'subj', 'body', 'msgid', 'reply', 'path', 'seen', 'state', 'transfer', 'file') VALUES @@ -188,7 +188,7 @@ sub mail_remove($$) my ($handle, $id) = @_; my $rows = $handle->{dbh}->do( - "DELETE FROM $handle->{table} WHERE \"id\"=?;", + "DELETE FROM '$handle->{table}' WHERE \"id\"=?;", undef, ( $id ), ); -- 2.30.2