Skip to content

Commit f386e5d

Browse files
authored
Add regex test for extracting custom doc_root data
https://regex101.com/r/2CLvIF/1
1 parent c8bf9c1 commit f386e5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/edit/web/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191

9292
if(!empty($v_custom_doc_root) &&
9393
false !== preg_match('/\/home\/'.$v_username.'\/web\/([[:alnum:]].*?)\/public_html\/([[:alnum:]].*)?/', $v_custom_doc_root, $matches) ) {
94+
// Regex for extracting target web domain and custom document root. Regex test: https://regex101.com/r/2CLvIF/1
9495

9596
if(!empty($matches[1]))
9697
$v_custom_doc_domain = $matches[1];

0 commit comments

Comments
 (0)