mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Bugfix: sieve undefined args[i-1]
This commit is contained in:
parent
e6ea47e75f
commit
882c0bde42
8 changed files with 17 additions and 17 deletions
|
|
@ -34,7 +34,7 @@ export class BodyTest extends TestCommand
|
|||
if (':raw' === arg || ':text' === arg) {
|
||||
this.body_transform = arg;
|
||||
} else if (arg instanceof GrammarStringList || arg instanceof GrammarString) {
|
||||
if (':content' === args[i-1]) {
|
||||
if (i && ':content' === args[i-1]) {
|
||||
this.body_transform = ':content ' + arg;
|
||||
} else {
|
||||
this[args[i+1] ? 'content_list' : 'key_list'] = arg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue