Skip to content

Commit e10bb13

Browse files
author
Marius Burkard
committed
Merge branch 'master' into 'patch-ci-test'
# Conflicts: # .gitlab-ci.yml
2 parents b7794d7 + 93edc7d commit e10bb13

23 files changed

+500
-234
lines changed

install/dist/lib/opensuse.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function configure_amavis() {
507507
$content = str_replace('{mysql_server_port}', $conf["mysql"]["port"], $content);
508508
$content = str_replace('{mysql_server_ip}', $conf['mysql']['ip'], $content);
509509
$content = str_replace('{hostname}', $conf['hostname'], $content);
510-
$content = str_replace('{amavis_config_dir}', $conf['amavis']['config_dir']);
510+
$content = str_replace('{amavis_config_dir}', $conf['amavis']['config_dir'], $content);
511511
wf($conf["amavis"]["config_dir"].'/amavisd.conf', $content);
512512
chmod($conf['amavis']['config_dir'].'/amavisd.conf', 0640);
513513

install/tpl/apache_ispconfig.vhost.master

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,19 @@
9191
</tmpl_if>
9292

9393
<IfModule mod_headers.c>
94-
Header always add Strict-Transport-Security "max-age=15768000"
95-
RequestHeader unset Proxy early
94+
# ISPConfig 3.1 currently requires unsafe-line for both scripts and styles, as well as unsafe-eval
95+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; object-src 'none'; upgrade-insecure-requests"
96+
Header set X-Content-Type-Options: nosniff
97+
Header set X-Frame-Options: SAMEORIGIN
98+
Header set X-XSS-Protection: "1; mode=block"
99+
Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
100+
<IfVersion >= 2.4.7>
101+
Header setifempty Strict-Transport-Security "max-age=15768000"
102+
</IfVersion>
103+
<IfVersion < 2.4.7>
104+
Header set Strict-Transport-Security "max-age=15768000"
105+
</IfVersion>
106+
RequestHeader unset Proxy early
96107
</IfModule>
97108

98109
<tmpl_if name='apache_version' op='>=' value='2.3.3' format='version'>

interface/lib/app.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ public function __construct() {
6262
$this->_conf = $conf;
6363
if($this->_conf['start_db'] == true) {
6464
$this->load('db_'.$this->_conf['db_type']);
65-
$this->db = new db;
65+
try {
66+
$this->db = new db;
67+
} catch (Exception $e) {
68+
$this->db = false;
69+
}
6670
}
6771

6872
//* Start the session

0 commit comments

Comments
 (0)