]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix triggering of the suspicious url rule on percent encoding
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Nov 2021 09:53:49 +0000 (09:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 19 Nov 2021 09:53:49 +0000 (09:53 +0000)
src/libserver/html/html_url.cxx

index ff0834040127e47e38e93f1ae3adca9ccd24f643..93fef68d1322cbceeea39fbf93df41074d1635e5 100644 (file)
@@ -414,7 +414,6 @@ html_process_url(rspamd_mempool_t *pool, std::string_view &input)
                                                /* Replace it back */
                                                *d++ = (char)(codepoint & 0xff);
                                                i += 2;
-                                               has_bad_chars = TRUE;
                                        }
                                        else {
                                                *d++ = s[i];