summaryrefslogtreecommitdiffstats
path: root/dependencyinjection
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-02-11 16:05:37 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-02-11 16:05:58 +0100
commit99af7d32d42d7b77bae4f7747c02db959f35d668 (patch)
tree97e9141c60fb21e7e38b785d0b278da7e31792ca /dependencyinjection
parentd5eab3852c1c6629be6b29016e67e374d85f78ac (diff)
fix XSS when importing articles, speed up update and adding of feeds by only purifying content that will be added to the db
Diffstat (limited to 'dependencyinjection')
-rw-r--r--dependencyinjection/dicontainer.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/dependencyinjection/dicontainer.php b/dependencyinjection/dicontainer.php
index 480635d8e..d8e286bd6 100644
--- a/dependencyinjection/dicontainer.php
+++ b/dependencyinjection/dicontainer.php
@@ -194,7 +194,8 @@ class DIContainer extends BaseContainer {
$c['API'],
$c['TimeFactory'],
$c['autoPurgeMinimumInterval'],
- $c['Enhancer']);
+ $c['Enhancer'],
+ $c['HTMLPurifier']);
});
$this['ItemBusinessLayer'] = $this->share(function($c){
@@ -264,7 +265,6 @@ class DIContainer extends BaseContainer {
foreach(json_decode($xpathEnhancerConfig, true) as $feed => $config) {
$articleEnhancer = new XPathArticleEnhancer(
- $c['HTMLPurifier'],
$c['SimplePieFileFactory'],
$config,
$c['feedFetcherTimeout']
@@ -303,8 +303,7 @@ class DIContainer extends BaseContainer {
$c['TimeFactory'],
$c['simplePieCacheDirectory'],
$c['simplePieCacheDuration'],
- $c['feedFetcherTimeout'],
- $c['HTMLPurifier']);
+ $c['feedFetcherTimeout']);
});
$this['StatusFlag'] = $this->share(function($c){