Fixed: enable _TrustedDomain when html is rendered by lua code

--HG--
branch : develop
This commit is contained in:
ulukyn 2018-05-31 21:03:05 +02:00
parent 97d0d45384
commit 6573d96fd7

View file

@ -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;