modules/MSGBASE: quote table name ("24000_GER")
authorSebastian <basti@notizbuch>
Sat, 7 Jun 2014 13:19:04 +0000 (15:19 +0200)
committerSebastian <basti@notizbuch>
Sat, 7 Jun 2014 13:19:04 +0000 (15:19 +0200)
modules/MSGBASE.pm

index 1b5845fd7de1b6d76b567ca0246b5e97536b0b25..dd79dcf83bdce6f6c8fd06cb04a6b62e94ad6217 100644 (file)
@@ -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 ),
        );