mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:35:55 +00:00
Merge pull request #403 from dzaikos/patch-leading-space-urls
Added ltrim to $url in fetch_file_contents()...
This commit is contained in:
@@ -354,6 +354,7 @@
|
|||||||
global $fetch_last_content_type;
|
global $fetch_last_content_type;
|
||||||
global $fetch_curl_used;
|
global $fetch_curl_used;
|
||||||
|
|
||||||
|
$url = ltrim($url, ' ');
|
||||||
$url = str_replace(' ', '%20', $url);
|
$url = str_replace(' ', '%20', $url);
|
||||||
|
|
||||||
if (!defined('NO_CURL') && function_exists('curl_init')) {
|
if (!defined('NO_CURL') && function_exists('curl_init')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user