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

mgifford’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

If this is still an issue, please re-open and upgrade version to D7. Drupal 6 is no longer being maintained.