Skip to content

Commit 8e12d4d

Browse files
committed
Fixed: FS#1131 - error in php-cgi-starter
Fixed: FS#1118 - [client_id] is not resolved in .php-fcgi-starter
1 parent 658b0f1 commit 8e12d4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/sites/web_domain_edit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ function onAfterUpdate() {
442442
$app->db->query($sql);
443443
}
444444
if($web_rec['php_open_basedir'] == '') {
445+
$document_root = $app->db->quote(str_replace("[client_id]",$client_id,$document_root));
445446
$php_open_basedir = str_replace("[website_path]",$document_root,$web_config["php_open_basedir"]);
446447
$php_open_basedir = $app->db->quote(str_replace("[website_domain]",$web_rec['domain'],$php_open_basedir));
447448
$sql = "UPDATE web_domain SET php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$this->id;

0 commit comments

Comments
 (0)