Fixed: enable _TrustedDomain when html is rendered by lua code

--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 7 years ago
parent dcb7114370
commit 741aac46de

@ -5832,6 +5832,8 @@ namespace NLGUI
CLuaIHM::checkArgType(ls, funcName, 1, LUA_TSTRING); CLuaIHM::checkArgType(ls, funcName, 1, LUA_TSTRING);
std::string html = ls.toString(1); std::string html = ls.toString(1);
// Always trust domain if rendered from lua
_TrustedDomain = true;
renderHtmlString(html); renderHtmlString(html);
return 0; return 0;

Loading…
Cancel
Save