summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/docs
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-02-19 12:23:35 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-02-19 12:23:44 +0100
commit04dc1076f13567549602802bbf8e931879174353 (patch)
tree490cab68e0d887e422246cd0351b309c3d9cdefa /vendor/fguillot/picofeed/docs
parent4b6e528a5f0472624644bd812c19af55fea52080 (diff)
fix #734 and set a CSP on master
Diffstat (limited to 'vendor/fguillot/picofeed/docs')
-rw-r--r--vendor/fguillot/picofeed/docs/config.markdown12
1 files changed, 11 insertions, 1 deletions
diff --git a/vendor/fguillot/picofeed/docs/config.markdown b/vendor/fguillot/picofeed/docs/config.markdown
index 75546abd1..8b197f6f9 100644
--- a/vendor/fguillot/picofeed/docs/config.markdown
+++ b/vendor/fguillot/picofeed/docs/config.markdown
@@ -283,4 +283,14 @@ $config->setFilterImageProxyCallback(function ($image_url) {
$key = hash_hmac('sha1', $image_url, 'secret');
return 'https://mypublicproxy/'.$key.'/'.urlencode($image_url);
});
-``` \ No newline at end of file
+```
+
+### Define image proxy protocol restriction
+
+- Method name: `setFilterImageProxyProtocol()`
+- Default value: Empty (all protocols)
+- Argument value: string
+
+```php
+$config->setFilterImageProxyProtocol('http');
+```