Commit ba28a85f authored by yann300's avatar yann300

fix do not allow using filesystem root at all

parent 6193fcd5
......@@ -58,8 +58,6 @@ class FileManager extends Plugin {
}
limitPluginScope (path) {
if (!this.currentRequest) return path // no plugin request, path shall not be modified.
if (this.appManager.isRequired(this.currentRequest.from)) return path // caller is a service plugin, path shall not be modified
return path.replace(/^\/browser\//, '').replace(/^browser\//, '') // forbids plugin to access the root filesystem
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment