From fdab0b64b76a2168ce6d50ed492bd31b02bb2d09 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Fri, 14 Feb 2014 10:36:31 +0100 Subject: [PATCH] fix undefined index when adding --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 39afe8b..f3ae23e 100644 --- a/index.php +++ b/index.php @@ -606,6 +606,7 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L if(empty($error)) { try { $rssurl = parse_url($_POST['rssurl']); + if(!isset($rssurl['query'])) $rssurl['query'] = ''; $rssurl = $rssurl['scheme'].'://'.$rssurl['host'].$rssurl['path'].'?'.html_entity_decode($rssurl['query']); $rssurl = DetectRedirect($rssurl);