Fixed: enable _TrustedDomain when html is rendered by lua code

--HG--
branch : develop
hg/compatibility-develop
ulukyn 7 years ago
parent 97d0d45384
commit 6573d96fd7

@ -5830,6 +5830,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;

Loading…
Cancel
Save