Skip to content

Commit

Permalink
[TASK] Small code adjustments and default setting for images
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoAndras committed Dec 2, 2017
1 parent c65142b commit 41f4f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected function ensureSandboxValues($sandbox) {
$values = preg_split('/,/', $sandbox);

foreach ($values as $value) {
$value = trim($value);
$value = trim(htmlspecialchars($value));
if($value) {
if (!in_array($value, $this->acceptedSandboxValues)) {
throw new InvalidValueException(
Expand Down
1 change: 1 addition & 0 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ plugin.tx_csp.settings {

img {
0 = self
1 = data:
}
}
}
Expand Down

0 comments on commit 41f4f0b

Please sign in to comment.