--- backup_migrate.module.orig	2008-09-21 12:50:22.000000000 +0200
+++ backup_migrate.module	2008-09-21 13:44:21.000000000 +0200
@@ -1067,7 +1067,7 @@ function _backup_migrate_check_destinati
   // Attempt to read the test file via http. This may fail for other reasons,
   // so it's not a bullet-proof check.
   $path = trim(substr($subdir .'/test.txt', strlen(file_directory_path())), '\\/');
-  if (_backup_migrate_test_file_readable_remotely($filename, $contents)) {
+  if (_backup_migrate_test_file_readable_remotely($path, $test_contents)) {
     $message = t("Security notice: Backup and Migrate will not save backup files to the server because the destination directory is publicly accessible. If you want to save files to the server, please secure the '%directory' directory", array('%directory' => $directory));
     drupal_set_message($message, "error");
     return FALSE;
