]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
Added ltrim to in fetch_file_contents to fix edge cases where a URL has one or more...
[tt-rss.git] / 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')) {