summaryrefslogtreecommitdiffstats
path: root/dependencyinjection
diff options
context:
space:
mode:
authorbluehaze <francesco.sportolari@gmail.com>2013-07-03 18:14:59 +0200
committerbluehaze <francesco.sportolari@gmail.com>2013-07-03 18:14:59 +0200
commit34d3b2c512242f92bb52fdd14ab1ca07847e6425 (patch)
tree33df1b423c2f1dbb68db8283315fee80dc42c7e1 /dependencyinjection
parent6a36802bc73ced88ae81ad41762949fb78142496 (diff)
Modified HTMLPurifier Configuration
Diffstat (limited to 'dependencyinjection')
-rw-r--r--dependencyinjection/dicontainer.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index b5a3b41b1..92cb0ffcb 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -98,12 +98,12 @@ class DIContainer extends BaseContainer {
$config = \HTMLPurifier_Config::createDefault();
$config->set('Cache.SerializerPath', $directory);
- $config->set('HTML.SafeIframe', true);
- $config->set('HTML.SafeObject', true);
- $config->set('HTML.SafeEmbed', true);
- $config->set('Output.FlashCompat', true);
- $config->set('URI.SafeIframeRegexp',
- '%^(http[s]?:)?//(www.youtube(?:-nocookie)?.com/embed/|player.vimeo.com/video/|w.soundcloud.com/player/)%'); //allow YouTube, Vimeo and Soundcloud iframes
+ $config->set('HTML.SafeIframe', true);
+ $config->set('HTML.SafeObject', true);
+ $config->set('HTML.SafeEmbed', true);
+ $config->set('Output.FlashCompat', true);
+ $config->set('URI.SafeIframeRegexp',
+ '%^(http[s]?:)?//(www.youtube(?:-nocookie)?.com/embed/|player.vimeo.com/video/|w.soundcloud.com/player/)%'); //allow YouTube, Vimeo and Soundcloud iframes
return new \HTMLPurifier($config);
});