Commit d5be8964 authored by tbrehm's avatar tbrehm
Browse files

Fixed a bug were index.html gets overwriten when a subdomain is added.

parent 4d4495c9
...@@ -284,7 +284,7 @@ class apache2_plugin { ...@@ -284,7 +284,7 @@ class apache2_plugin {
} }
if($this->action == 'insert') { if($this->action == 'insert' && $data["new"]["type"] == 'vhost') {
// Copy the error pages // Copy the error pages
$error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/"; $error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/";
exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path); exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment