Update common.php

pull/4/head
qkqpttgf 2020-01-20 18:47:08 +08:00 committed by GitHub
parent 123a24a096
commit c3785d8d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -72,6 +72,7 @@ function getListpath($domain)
$tmp = explode("|",$domain_path1); $tmp = explode("|",$domain_path1);
foreach ($tmp as $multidomain_paths){ foreach ($tmp as $multidomain_paths){
$pos = strpos($multidomain_paths,":"); $pos = strpos($multidomain_paths,":");
if ($pos>0) {
$domain1 = substr($multidomain_paths,0,$pos); $domain1 = substr($multidomain_paths,0,$pos);
$tmp_path = path_format(substr($multidomain_paths,$pos+1)); $tmp_path = path_format(substr($multidomain_paths,$pos+1));
$domain_path[$domain1] = $tmp_path; $domain_path[$domain1] = $tmp_path;
@ -79,6 +80,7 @@ function getListpath($domain)
//if (substr($multidomain_paths,0,$pos)==$host_name) $private_path=$tmp_path; //if (substr($multidomain_paths,0,$pos)==$host_name) $private_path=$tmp_path;
} }
} }
}
if (isset($domain_path[$domain])) return spurlencode($domain_path[$domain],'/'); if (isset($domain_path[$domain])) return spurlencode($domain_path[$domain],'/');
return spurlencode($public_path,'/'); return spurlencode($public_path,'/');
} }