Fixed: enable _TrustedDomain when html is rendered by lua code
--HG-- branch : develop
This commit is contained in:
parent
97d0d45384
commit
6573d96fd7
1 changed files with 2 additions and 0 deletions
|
@ -5830,6 +5830,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…
Reference in a new issue