From 8b1a81a7753ef9751fe464920f39828002b93ab3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 16 Dec 2019 21:21:53 +0000 Subject: [PATCH] [Minor] Deal with base flag --- src/lua/lua_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5