From: Sebastian Date: Sat, 7 Jun 2014 13:19:04 +0000 (+0200) Subject: modules/MSGBASE: quote table name ("24000_GER") X-Git-Url: http://sraa.de/git/?a=commitdiff_plain;h=ea91b89fb0819b618570adff42c06b1651e0b79a;p=fido.git modules/MSGBASE: quote table name ("24000_GER") --- 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 ), );