fix do not allow using filesystem root at all

pull/932/head
yann300 4 years ago
parent 6193fcd51e
commit ba28a85f72
  1. 2
      apps/remix-ide/src/app/files/fileManager.js

@ -58,8 +58,6 @@ class FileManager extends Plugin {
} }
limitPluginScope (path) { 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 return path.replace(/^\/browser\//, '').replace(/^browser\//, '') // forbids plugin to access the root filesystem
} }

Loading…
Cancel
Save