Rev 778 | Rev 780 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 778 | Rev 779 | ||
---|---|---|---|
Line 1005... | Line 1005... | ||
1005 | } else if (strtolower($name) == 'content-security-policy') { |
1005 | } else if (strtolower($name) == 'content-security-policy') { |
1006 | if (count($val) == 0) continue; |
1006 | if (count($val) == 0) continue; |
1007 | foreach ($val as $tmp1 => &$tmp2) $tmp2 = $tmp1.' '.implode(' ', $tmp2); |
1007 | foreach ($val as $tmp1 => &$tmp2) $tmp2 = $tmp1.' '.implode(' ', $tmp2); |
1008 | $val = implode('; ', $val); |
1008 | $val = implode('; ', $val); |
1009 | } else { |
1009 | } else { |
1010 | throw new OIDplusException(_L('HTTP header "%1" cannot be written as array. A newly installed plugin might have misused the header manipulation feature.',$name)); |
1010 | throw new OIDplusException(_L('HTTP header "%1" cannot be written as array. A newly installed plugin is probably misusing the method "%2".',$name,'httpHeaderCheck')); |
1011 | } |
1011 | } |
1012 | } |
1012 | } |
1013 | 1013 | ||
1014 | if (is_string($val)) { |
1014 | if (is_string($val)) { |
1015 | header("$name: $val"); |
1015 | header("$name: $val"); |