]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Deal with base flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 21:21:53 +0000 (21:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 21:21:53 +0000 (21:21 +0000)
src/lua/lua_html.c

index 39a4a77a035fa5d0e23fdb73d66dd45ecc9dfef0..0af0457da39dc7375aa7377e2d4816a8ab736492 100644 (file)
@@ -696,7 +696,7 @@ lua_html_tag_get_extra (lua_State *L)
 
        if (tag) {
                if (tag->extra) {
-                       if (tag->flags & FL_HREF) {
+                       if ((tag->flags & FL_HREF) || tag->id == Tag_BASE) {
                                /* For A that's URL */
                                purl = lua_newuserdata (L, sizeof (gpointer));
                                *purl = tag->extra;