]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix some typos 2086/head
authorAndrew Lewis <nerf@judo.za.org>
Sun, 18 Mar 2018 00:26:07 +0000 (02:26 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 18 Mar 2018 00:26:07 +0000 (02:26 +0200)
interface/js/app/upload.js
src/libmime/lang_detection.c
src/lua/lua_config.c

index caeb88d64b99df99f4d707e7a83b8e30bbd2176d..f56ff9105ce43017a791433b5e279b4a3a8fa8ce 100644 (file)
@@ -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();
             }
index 73ee4735d22b38587ff239c0566d1006fd83b6d1..0c82946ddce8ac2b88ccf81f3d1cc7876b897c53 100644 (file)
@@ -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
+}
index 3135cc8f4baa3fcbec91ea9ea98b697a382312ff..6b1c9f490cc3ab3fc8ef1bca655b37577e646a0c 100644 (file)
@@ -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,