Browse Source

Remove trailing slashes

Jaap Marcus 5 years ago
parent
commit
b0d717da8c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      web/edit/web/index.php

+ 3 - 1
web/edit/web/index.php

@@ -79,7 +79,9 @@ $v_custom_doc_root = $data[$v_domain]['CUSTOM_DOCROOT'];
 $m = preg_match('/\/home\/demo\/web\/([[:alnum:]].*)\/public_html\/([[:alnum:]].*)/', $v_custom_doc_root, $matches);
 $v_custom_doc_domain = $matches[1];
 $v_custom_doc_folder = $matches[2];
-
+if(substr($v_custom_doc_folder, -1) == '/'){
+    $v_custom_doc_folder = substr($v_custom_doc_folder,0,-1);
+}
 
 
 $v_ftp_user = $data[$v_domain]['FTP_USER'];