Skip to content
Snippets Groups Projects
Commit 5664ae73 authored by Alex Barth's avatar Alex Barth
Browse files

Properly encode path.

parent 894188f3
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
/**
......
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