Skip to content

Commit 5e64915

Browse files
authored
Remove user name from ftp_user when editing (hestiacp#1411)
1 parent 04437ad commit 5e64915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/edit/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@
862862
}
863863
$v_ftp_users[] = array(
864864
'is_new' => 0,
865-
'v_ftp_user' => $v_ftp_user_val,
865+
'v_ftp_user' => preg_replace("/^".$user."_/", "", $v_ftp_user_val),
866866
'v_ftp_password' => $v_ftp_password,
867867
'v_ftp_path' => (isset($v_ftp_users_paths_raw[$v_ftp_user_index]) ? $v_ftp_users_paths_raw[$v_ftp_user_index] : ''),
868868
'v_ftp_email' => $v_ftp_email,

0 commit comments

Comments
 (0)