Skip to content

Commit

Permalink
Strip credentials from HTTP Referer (FreshRSS#1891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed May 20, 2018
1 parent dec6db6 commit 4d3fc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SimplePie/SimplePie/File.php
Expand Up @@ -110,7 +110,7 @@ public function __construct($url, $timeout = 10, $redirects = 5, $headers = null
curl_setopt($fp, CURLOPT_FAILONERROR, 1);
curl_setopt($fp, CURLOPT_TIMEOUT, $timeout);
curl_setopt($fp, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($fp, CURLOPT_REFERER, $url);
curl_setopt($fp, CURLOPT_REFERER, SimplePie_Misc::url_remove_credentials($url));
curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
if (!ini_get('open_basedir') && !ini_get('safe_mode') && version_compare(SimplePie_Misc::get_curl_version(), '7.15.2', '>='))
Expand Down

0 comments on commit 4d3fc6b

Please sign in to comment.