aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-07 14:42:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-07 14:43:15 +0100
commit3ca316cd22f55b484b0a00a5818617dd585325b4 (patch)
treebee7488fb1dac0cd71b89f69abfca38430f622c7 /src/libmime
parentb9ef79d942ab8c71b2b05ca9d0d1adb01d1f0755 (diff)
downloadrspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.tar.gz
rspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.zip
[Minor] Unify substring search routines
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index f6d23b686..0094afc6b 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -372,7 +372,7 @@ rspamd_check_gtube (struct rspamd_task *task, struct rspamd_mime_text_part *part
if (part->content && part->content->len > sizeof (gtube_pattern) &&
part->content->len <= max_check_size) {
- if (rspamd_substring_search_twoway (part->content->data,
+ if (rspamd_substring_search (part->content->data,
part->content->len,
gtube_pattern, sizeof (gtube_pattern) - 1) != -1) {
task->flags |= RSPAMD_TASK_FLAG_SKIP;