From 741aac46de4711b4f29432f915cc11e3bc2ae4fa Mon Sep 17 00:00:00 2001 From: ulukyn Date: Thu, 31 May 2018 21:03:05 +0200 Subject: [PATCH] Fixed: enable _TrustedDomain when html is rendered by lua code --HG-- branch : compatibility-develop --- code/nel/src/gui/group_html.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 353e0097c..8adfa14fb 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -5832,6 +5832,8 @@ namespace NLGUI CLuaIHM::checkArgType(ls, funcName, 1, LUA_TSTRING); std::string html = ls.toString(1); + // Always trust domain if rendered from lua + _TrustedDomain = true; renderHtmlString(html); return 0;