Changeset 3340:30cec05f4e63 for inc/admin
- Timestamp:
- 09/09/16 13:30:35 (9 years ago)
- Branch:
- default
- Location:
- inc/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r3326 r3340 106 106 // Get directives from settings if exist, else set defaults 107 107 $csp = new ArrayObject(array()); 108 $csp['default-src'] = $core->blog->settings->system->csp_admin_default ? $core->blog->settings->system->csp_admin_default: "'self'";109 $csp['script-src'] = $core->blog->settings->system->csp_admin_script ? $core->blog->settings->system->csp_admin_script: "'self' 'unsafe-inline' 'unsafe-eval'";110 $csp['style-src'] = $core->blog->settings->system->csp_admin_style ? $core->blog->settings->system->csp_admin_style: "'self' 'unsafe-inline'";111 $csp['img-src'] = $core->blog->settings->system->csp_admin_img ? $core->blog->settings->system->csp_admin_img: "'self' data: media.dotaddict.org";108 $csp['default-src'] = $core->blog->settings->system->csp_admin_default ?: "'self'"; 109 $csp['script-src'] = $core->blog->settings->system->csp_admin_script ?: "'self' 'unsafe-inline' 'unsafe-eval'"; 110 $csp['style-src'] = $core->blog->settings->system->csp_admin_style ?: "'self' 'unsafe-inline'"; 111 $csp['img-src'] = $core->blog->settings->system->csp_admin_img ?: "'self' data: media.dotaddict.org"; 112 112 113 113 # Cope with blog post preview (via public URL in iframe) … … 298 298 { 299 299 global $core; 300 $tag = (isset($n['divtag']) && $n['divtag'])?'div':'p';300 $tag = (isset($n['divtag']) && $n['divtag']) ? 'div' : 'p'; 301 301 $ts = ''; 302 302 if (!isset($n['with_ts']) || ($n['with_ts'] == true)) { … … 442 442 { 443 443 global $core; 444 $with_home_link = isset($options['home_link']) ?$options['home_link']:true;445 $hl = isset($options['hl']) ?$options['hl']:true;446 $hl_pos = isset($options['hl_pos']) ?$options['hl_pos']:-1;444 $with_home_link = isset($options['home_link']) ? $options['home_link'] : true; 445 $hl = isset($options['hl']) ? $options['hl'] : true; 446 $hl_pos = isset($options['hl_pos']) ? $options['hl_pos'] : -1; 447 447 // First item of array elements should be blog's name, System or Plugins 448 448 $res = '<h2>'.($with_home_link ? -
inc/admin/lib.themeconfig.php
r2660 r3340 71 71 72 72 // Eval font size in em (assume base font size in pixels equal to 16) 73 if (preg_match('/^([0-9.]+)\s*(%|pt|px|em|ex )?$/',$size,$m)) {73 if (preg_match('/^([0-9.]+)\s*(%|pt|px|em|ex|rem)?$/',$size,$m)) { 74 74 if (empty($m[2])) { 75 75 $m[2] = 'em'; … … 144 144 public static function adjustFontSize($s) 145 145 { 146 if (preg_match('/^([0-9.]+)\s*(%|pt|px|em|ex )?$/',$s,$m)) {146 if (preg_match('/^([0-9.]+)\s*(%|pt|px|em|ex|rem)?$/',$s,$m)) { 147 147 if (empty($m[2])) { 148 148 $m[2] = 'em';
Note: See TracChangeset
for help on using the changeset viewer.