From 5bc4c06dd645493a65de16dc76935260729d4a15 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sun, 18 Mar 2018 02:26:07 +0200 Subject: [PATCH] [Fix] Fix some typos --- interface/js/app/upload.js | 2 +- src/libmime/lang_detection.c | 4 ++-- src/lua/lua_config.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index caeb88d64..f56ff9105 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -194,7 +194,7 @@ function($) { if (source == 'fuzzy') { //To access the proper headers.flag = $('#fuzzyFlagText').val(); - headers.weigth = $('#fuzzyWeightText').val(); + headers.weight = $('#fuzzyWeightText').val(); } else { data = $('#' + source + 'TextSource').val(); } diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c index 73ee4735d..0c82946dd 100644 --- a/src/libmime/lang_detection.c +++ b/src/libmime/lang_detection.c @@ -588,7 +588,7 @@ rspamd_language_detector_process_chain (struct rspamd_config *cfg, } } else { - /* We have a unique ngramm, increase its weigth */ + /* We have a unique ngramm, increase its weight */ PTR_ARRAY_FOREACH (chain->languages, i, elt) { elt->prob *= 4.0; #ifdef EXTRA_LANGDET_DEBUG @@ -1346,4 +1346,4 @@ rspamd_language_detector_detect (struct rspamd_task *task, (end_ticks - start_ticks)); return result; -} \ No newline at end of file +} diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 3135cc8f4..6b1c9f490 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1580,7 +1580,7 @@ lua_config_register_symbol (lua_State * L) if (cfg) { if (!rspamd_lua_parse_table_arguments (L, 2, &err, - "name=S;weigth=N;callback=F;flags=S;type=S;priority=I;parent=D;" + "name=S;weight=N;callback=F;flags=S;type=S;priority=I;parent=D;" "score=D;description=S;group=S;one_shot=B;nshots=I;no_squeeze=B", &name, &weight, &cbref, &flags_str, &type_str, &priority, &parent_float, -- 2.39.5