diff options
Diffstat (limited to 'src/modules/filters/utf8html.cpp')
-rw-r--r-- | src/modules/filters/utf8html.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/filters/utf8html.cpp b/src/modules/filters/utf8html.cpp index 7487815..f337698 100644 --- a/src/modules/filters/utf8html.cpp +++ b/src/modules/filters/utf8html.cpp @@ -19,6 +19,8 @@ char UTF8HTML::ProcessText(char *text, int maxlen, const SWKey *key, const SWMod int len; char digit[10]; unsigned long ch; + if ((unsigned long)key < 2) // hack, we're en(1)/de(0)ciphering + return -1; len = strlenw(text) + 2; // shift string to right of buffer if (len < maxlen) { |