mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Merge pull request #1111 from developer-av/hotfix/1108
*Fix Proxy setting becomes unset by user*
This commit is contained in:
commit
1e4063eb7a
2 changed files with 25 additions and 2 deletions
|
@ -230,8 +230,8 @@ if (!empty($_POST['save'])) {
|
|||
$restart_proxy = 'yes';
|
||||
}
|
||||
|
||||
// Change proxy template / Update extension list
|
||||
if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg']))) {
|
||||
// Change proxy template / Update extension list (admin only)
|
||||
if ((!empty($_SESSION['PROXY_SYSTEM'])) && (!empty($v_proxy)) && (!empty($_POST['v_proxy'])) && (empty($_SESSION['error_msg'])) && ($_SESSION['user'] == 'admin')) {
|
||||
$ext = preg_replace("/\n/", " ", $_POST['v_proxy_ext']);
|
||||
$ext = preg_replace("/,/", " ", $ext);
|
||||
$ext = preg_replace('/\s+/', ' ',$ext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue