diff options
| author | 2016-02-29 17:47:05 +0100 | |
|---|---|---|
| committer | 2016-02-29 17:47:05 +0100 | |
| commit | 1e644b64709b6f9bae89ef77b89203c210462a58 (patch) | |
| tree | 59280b2a3f83796f3e749d04ecad9bf605537610 /lib/SimplePie/SimplePie.php | |
| parent | 911bf6aefeeb8bb41570a404c03b81843791e224 (diff) | |
| parent | 685c0ad2f8a4f6e854240d3a11415bcd62157ca4 (diff) | |
Merge pull request #1087 from Alkarex/HTTPS_Everywhere
Force HTTPS for selected embed providers
Diffstat (limited to 'lib/SimplePie/SimplePie.php')
| -rw-r--r-- | lib/SimplePie/SimplePie.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.php index 6c0962a9f..a84f6dab3 100644 --- a/lib/SimplePie/SimplePie.php +++ b/lib/SimplePie/SimplePie.php @@ -1123,6 +1123,7 @@ class SimplePie $this->strip_attributes(false); $this->add_attributes(false); $this->set_image_handler(false); + $this->set_https_domains(array()); } } @@ -1234,6 +1235,19 @@ class SimplePie } /** + * Set the list of domains for which force HTTPS. + * @see SimplePie_Sanitize::set_https_domains() + * FreshRSS + */ + public function set_https_domains($domains = array()) + { + if (is_array($domains)) + { + $this->sanitize->set_https_domains($domains); + } + } + + /** * Set the handler to enable the display of cached images. * * @param str $page Web-accessible path to the handler_image.php file. |
