dolibarr 23.0.3
security_headers_http.php File Reference

Security options setup. More...

Go to the source code of this file.

Variables

if(preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) elseif(preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) elseif( $action=='removecspsource') elseif($action=="updateform" &&GETPOST("btn_MAIN_SECURITY_FORCECSP")) elseif( $action=="updateform" cleanSecurityCSP )($securitycsp)
 Function to fix a bad security CSP string.
 

Detailed Description

Security options setup.

Definition in file security_headers_http.php.

Variable Documentation

◆ cleanSecurityCSP

if(preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) elseif(preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) elseif($action=='removecspsource') elseif( $action=="updateform" &&GETPOST("btn_MAIN_SECURITY_FORCECSP")) elseif($action=="updateform" cleanSecurityCSP) ( $securitycsp) ( $securitycsp)

Function to fix a bad security CSP string.

Parameters
string$securitycspValue of Content-Security-Policy to check and sanitize
Returns
string New value

Definition at line 261 of file security_headers_http.php.