]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Do not treat script content as text
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 21 Oct 2017 12:20:21 +0000 (13:20 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Sat, 21 Oct 2017 19:03:22 +0000 (21:03 +0200)
MFH: rspamd-1.6

src/libserver/html.c

index d22c280b4f74bf1b4a09d638d3d63bcf8bd4d0b2..42b2447e0beb19801e8f5b0891250bb65fb47564 100644 (file)
@@ -122,7 +122,7 @@ static struct html_tag_def tag_defs[] = {
        TAG_DEF(Tag_RUBY, "ruby", (CM_INLINE)),
        TAG_DEF(Tag_S, "s", (CM_INLINE)),
        TAG_DEF(Tag_SAMP, "samp", (CM_INLINE)),
-       TAG_DEF(Tag_SCRIPT, "script", (CM_HEAD | CM_MIXED | CM_BLOCK | CM_INLINE)),
+       TAG_DEF(Tag_SCRIPT, "script", (CM_HEAD | CM_MIXED)),
        TAG_DEF(Tag_SELECT, "select", (CM_INLINE | CM_FIELD)),
        TAG_DEF(Tag_SMALL, "small", (CM_INLINE)),
        TAG_DEF(Tag_SPAN, "span", (CM_BLOCK|FL_BLOCK)),