diff options
author | Max Kostikov <max@kostikov.co> | 2021-03-04 08:36:20 +0000 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-03-04 08:36:20 +0000 |
commit | 7beb500fb4c7ebd004a6c24f54be2989964e8e0e (patch) | |
tree | 6891e97605bb04b64465afd8c77d949e7023d56b /boot.php | |
parent | cb0199603908e617e10a4d8ba8ec569a59178e6b (diff) | |
download | volse-hubzilla-7beb500fb4c7ebd004a6c24f54be2989964e8e0e.tar.gz volse-hubzilla-7beb500fb4c7ebd004a6c24f54be2989964e8e0e.tar.bz2 volse-hubzilla-7beb500fb4c7ebd004a6c24f54be2989964e8e0e.zip |
Check if custom CSP is set
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2422,7 +2422,7 @@ function construct_page() { if(App::get_scheme() === 'https' && App::$config['system']['transport_security_header']) header("Strict-Transport-Security: max-age=31536000"); - if(App::$config['system']['content_security_policy']) { + if(isset(App::$config['system']['content_security_policy'])) { $cspsettings = [ 'script-src' => [ "'self'", "'unsafe-inline'", "'unsafe-eval'" ], 'style-src' => [ "'self'", "'unsafe-inline'" ], |