Skip to content

Commit b0d717d

Browse files
committed
Remove trailing slashes
1 parent 1913b75 commit b0d717d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/edit/web/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
$m = preg_match('/\/home\/demo\/web\/([[:alnum:]].*)\/public_html\/([[:alnum:]].*)/', $v_custom_doc_root, $matches);
8080
$v_custom_doc_domain = $matches[1];
8181
$v_custom_doc_folder = $matches[2];
82-
82+
if(substr($v_custom_doc_folder, -1) == '/'){
83+
$v_custom_doc_folder = substr($v_custom_doc_folder,0,-1);
84+
}
8385

8486

8587
$v_ftp_user = $data[$v_domain]['FTP_USER'];

0 commit comments

Comments
 (0)