]> git.wh0rd.org - tt-rss.git/commitdiff
Merge pull request #403 from dzaikos/patch-leading-space-urls
authorAndrew Dolgov <gothfox@users.noreply.github.com>
Mon, 25 Aug 2014 09:01:29 +0000 (13:01 +0400)
committerAndrew Dolgov <gothfox@users.noreply.github.com>
Mon, 25 Aug 2014 09:01:29 +0000 (13:01 +0400)
Added ltrim to $url in fetch_file_contents()...

include/functions.php

index 764dea10eccee68ebaef8e765e4c0bd0442cb80c..d783bd8531b2dbaf55593f0acd50425b82cd6900 100644 (file)
                global $fetch_last_content_type;
                global $fetch_curl_used;
 
+               $url = ltrim($url, ' ');
                $url = str_replace(' ', '%20', $url);
 
                if (!defined('NO_CURL') && function_exists('curl_init')) {