Changeset 3432:4e82fa3c576d for admin/install
- Timestamp:
- 12/02/16 11:54:52 (9 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/install/index.php
r3421 r3432 171 171 172 172 # CSP directive (admin part) 173 174 // SQlite Clearbricks driver does not allow using single quote at beginning or end of a field value 175 // so we have to use neutral values (localhost and 127.0.0.1) for some CSP directives 176 $csp_prefix = $core->con->driver() == 'sqlite' ? 'localhost ' : ''; // Hack for SQlite Clearbricks driver 177 $csp_suffix = $core->con->driver() == 'sqlite' ? ' 127.0.0.1' : ''; // Hack for SQlite Clearbricks driver 178 173 179 $blog_settings->system->put('csp_admin_on',true,'boolean','Send CSP header (admin)',true,true); 174 180 $blog_settings->system->put('csp_admin_report_only',false,'boolean','CSP Report only violations (admin)',true,true); 175 $blog_settings->system->put('csp_admin_default',"'self'",'string','CSP default-src directive',true,true); 176 $blog_settings->system->put('csp_admin_script',"'self' 'unsafe-inline' 'unsafe-eval'",'string','CSP script-src directive',true,true); 177 $blog_settings->system->put('csp_admin_style',"'self' 'unsafe-inline'",'string','CSP style-src directive',true,true); 178 $blog_settings->system->put('csp_admin_img',"'self' data: media.dotaddict.org blob:",'string','CSP img-src directive',true,true); 181 $blog_settings->system->put('csp_admin_default', 182 $csp_prefix."'self'".$csp_suffix,'string','CSP default-src directive',true,true); 183 $blog_settings->system->put('csp_admin_script', 184 $csp_prefix."'self' 'unsafe-inline' 'unsafe-eval'".$csp_suffix,'string','CSP script-src directive',true,true); 185 $blog_settings->system->put('csp_admin_style', 186 $csp_prefix."'self' 'unsafe-inline'".$csp_suffix,'string','CSP style-src directive',true,true); 187 $blog_settings->system->put('csp_admin_img', 188 $csp_prefix."'self' data: media.dotaddict.org blob:",'string','CSP img-src directive',true,true); 179 189 180 190 # Add Dotclear version
Note: See TracChangeset
for help on using the changeset viewer.