From 8e12d4d9d102094e047f4ffa7c83833087f16d52 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Wed, 24 Mar 2010 17:27:33 +0000 Subject: [PATCH] Fixed: FS#1131 - error in php-cgi-starter Fixed: FS#1118 - [client_id] is not resolved in .php-fcgi-starter --- interface/web/sites/web_domain_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php index ec422d74ad..1874b446e8 100644 --- a/interface/web/sites/web_domain_edit.php +++ b/interface/web/sites/web_domain_edit.php @@ -442,6 +442,7 @@ class page_action extends tform_actions { $app->db->query($sql); } if($web_rec['php_open_basedir'] == '') { + $document_root = $app->db->quote(str_replace("[client_id]",$client_id,$document_root)); $php_open_basedir = str_replace("[website_path]",$document_root,$web_config["php_open_basedir"]); $php_open_basedir = $app->db->quote(str_replace("[website_domain]",$web_rec['domain'],$php_open_basedir)); $sql = "UPDATE web_domain SET php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$this->id; -- GitLab