diff options
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llluamanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp index 9b74060139..164738bc3b 100644 --- a/indra/newview/llluamanager.cpp +++ b/indra/newview/llluamanager.cpp @@ -444,6 +444,9 @@ LLRequireResolver::LLRequireResolver(lua_State *L, std::string path) : mPathToRe lua_getinfo(L, 1, "s", &ar); mSourceChunkname = ar.source; + if (is_absolute_path(mPathToResolve)) + luaL_argerrorL(L, 1, "cannot require a full path"); + std::replace(mPathToResolve.begin(), mPathToResolve.end(), '\\', '/'); } |