Dotclear

Changeset 3314:d1cf0dda13c9 for inc


Ignore:
Timestamp:
08/16/16 23:02:32 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.10
Message:

Double single quote rather than escape them → prevents error for PostgreSQL update, fixes #2196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/dbschema/upgrade.php

    r3291 r3314  
    581581                    sprintf($strReq,'csp_admin_on',true,'boolean','Send CSP header (admin)')); 
    582582               $core->con->execute( 
    583                     sprintf($strReq,'csp_admin_default',"\'self\'",'string','CSP default-src directive')); 
    584                $core->con->execute( 
    585                     sprintf($strReq,'csp_admin_script',"\'self\' \'unsafe-inline\' \'unsafe-eval\'",'string','CSP script-src directive')); 
    586                $core->con->execute( 
    587                     sprintf($strReq,'csp_admin_style',"\'self\' \'unsafe-inline\'",'string','CSP style-src directive')); 
    588                $core->con->execute( 
    589                     sprintf($strReq,'csp_admin_img',"\'self\' data: media.dotaddict.org",'string','CSP img-src directive')); 
     583                    sprintf($strReq,'csp_admin_default',"''self''",'string','CSP default-src directive')); 
     584               $core->con->execute( 
     585                    sprintf($strReq,'csp_admin_script',"''self'' ''unsafe-inline'' ''unsafe-eval''",'string','CSP script-src directive')); 
     586               $core->con->execute( 
     587                    sprintf($strReq,'csp_admin_style',"''self'' ''unsafe-inline''",'string','CSP style-src directive')); 
     588               $core->con->execute( 
     589                    sprintf($strReq,'csp_admin_img',"''self'' data: media.dotaddict.org",'string','CSP img-src directive')); 
    590590          } 
    591591 
Note: See TracChangeset for help on using the changeset viewer.

Sites map