summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-16 21:21:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-16 21:21:53 +0000
commit8b1a81a7753ef9751fe464920f39828002b93ab3 (patch)
treeb068e0295c43fbeb729977937935d4049824295e
parent86e884c7fb798427a21cdb124b553eb88a5ca866 (diff)
downloadrspamd-8b1a81a7753ef9751fe464920f39828002b93ab3.tar.gz
rspamd-8b1a81a7753ef9751fe464920f39828002b93ab3.zip
[Minor] Deal with base flag
-rw-r--r--src/lua/lua_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c
index 39a4a77a0..0af0457da 100644
--- a/src/lua/lua_html.c
+++ b/src/lua/lua_html.c
@@ -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;