Update index.py

pull/121/head
midoks 3 years ago
parent 17f2e7692b
commit a1cef1708b
  1. 2
      plugins/php/index.py

@ -370,7 +370,7 @@ def getPhpConf(version):
{'name': 'cgi.fix_pathinfo', 'type': 0, 'ps': '是否开启pathinfo'}, {'name': 'cgi.fix_pathinfo', 'type': 0, 'ps': '是否开启pathinfo'},
{'name': 'date.timezone', 'type': 3, 'ps': '时区'} {'name': 'date.timezone', 'type': 3, 'ps': '时区'}
] ]
phpini = mw.readFile(getServerDir() + '/' + version + '/etc/php.ini') phpini = mw.readFile(getConf())
result = [] result = []
for g in gets: for g in gets:
rep = g['name'] + '\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)' rep = g['name'] + '\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)'

Loading…
Cancel
Save