fix do not allow using filesystem root at all

pull/5370/head
yann300 4 years ago
parent 0cd97db030
commit 19a735d82e
  1. 2
      apps/remix-ide/src/app/files/fileManager.js

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

Loading…
Cancel
Save