diff --git a/plugins/FeedsFetcher.inc b/plugins/FeedsFetcher.inc index 31a61558c576ac3503f03d4bcc19caa41471391d..4a42ccf0e4b576a12a5be3396ad7530c2f380173 100644 --- a/plugins/FeedsFetcher.inc +++ b/plugins/FeedsFetcher.inc @@ -49,10 +49,11 @@ abstract class FeedsFetcher extends FeedsPlugin { * Path for this fetcher/source combination. */ public function path($feed_nid = 0) { - if ($feed_nid) { - return urlencode('feeds/importer/'. $this->id .'/'. $feed_nid); + $id = urlencode($this->id); + if ($feed_nid && is_numeric($feed_nid)) { + return "feeds/importer/$id/$feed_nid"; } - return urlencode('feeds/importer/'. $this->id); + return "feeds/importer/$id"; } /**