Skip to content
Snippets Groups Projects
Commit eac480ef authored by Dave Reid's avatar Dave Reid
Browse files

Fixed PHP notice with undefined variables in http_request_get_common_syndication().

parent 70f3c976
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,10 @@ class HRCurlException extends Exception {}
* no feeds.
*/
function http_request_get_common_syndication($url, $settings = NULL) {
if (valid_url($url, TRUE)) {
$password = $username = NULL;
if (feeds_valid_url($url, TRUE)) {
// Handle password protected feeds.
$url_parts = parse_url($url);
$password = $username = NULL;
if (!empty($url_parts['user'])) {
$password = $url_parts['pass'];
$username = $url_parts['user'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment