Update site_api.py

pull/199/head
midoks 3 years ago
parent 1c7db0e2ec
commit 3265deed3d
  1. 4
      class/core/site_api.py

@ -2369,8 +2369,10 @@ location ^~ {from} {
return mw.returnJson(True, '已清除防跨站设置!')
self.delUserInI(newPath)
openPath = 'open_basedir={}/:{}/'.format(newPath, sitePath)
if runPath == '/':
openPath = 'open_basedir={}/'.format(newPath)
mw.writeFile(filename, openPath + ':/www/server/php:/tmp/:/proc/')
mw.execShell("chattr +i " + filename)

Loading…
Cancel
Save