Skip to content

Commit 45885b0

Browse files
jaapmarcuswojsmol
andauthored
Replace demo with $v_username
Thanks :) Didn't notice it when I copied :) Co-authored-by: Wojciech Smoliński <wojsmol@wp.pl>
1 parent b0d717d commit 45885b0

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
@@ -76,7 +76,7 @@
7676
$v_custom_doc_root_prepath = '/home/'.$v_username.'/web/';
7777
$v_custom_doc_root = $data[$v_domain]['CUSTOM_DOCROOT'];
7878

79-
$m = preg_match('/\/home\/demo\/web\/([[:alnum:]].*)\/public_html\/([[:alnum:]].*)/', $v_custom_doc_root, $matches);
79+
$m = preg_match('/\/home\/'.$v_username.'\/web\/([[:alnum:]].*)\/public_html\/([[:alnum:]].*)/', $v_custom_doc_root, $matches);
8080
$v_custom_doc_domain = $matches[1];
8181
$v_custom_doc_folder = $matches[2];
8282
if(substr($v_custom_doc_folder, -1) == '/'){

0 commit comments

Comments
 (0)