Closed (won't fix)
Project:
Troll
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2010 at 13:33 UTC
Updated:
16 Dec 2015 at 14:26 UTC
Jump to comment: Most recent
Today I tried to import a Blacklist from a txt file that I had on a other webbserver. I put the URL into the List URL field and I got a fopen error and I debugged it and found in this function below, the $edit is not an Array but only a string.
function troll_blacklist_import_url($edit) {
$url_parts = parse_url($edit['custom_list']);
$file_parts = pathinfo($url_parts['path']);
troll_blacklist_parse_save($edit['custom_list'], $file_parts['extension']);
}
So you might want to change to something like this
function troll_blacklist_import_url($edit) {
$url_parts = parse_url($edit);
$file_parts = pathinfo($url_parts['path']);
troll_blacklist_parse_save($edit, $file_parts['extension']);
}
and it should work, it did for me.
Comments
Comment #1
mgiffordIf this is still an issue, please re-open and upgrade version to D7. Drupal 6 is no longer being maintained.