Skip to content

Commit

Permalink
improved CSV importer sentinel (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjendres committed May 11, 2015
1 parent 788acfc commit 872c76c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/CRM/Banking/PluginImpl/Importer/CSV.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function probe_file( $file_path, $params )
}

// end verify this matches the sentinel
return preg_match($config->sentinel, $probe_data);
$sentinel = mb_convert_encoding($config->sentinel, mb_internal_encoding());
return preg_match($sentinel, $probe_data);
}


Expand Down

0 comments on commit 872c76c

Please sign in to comment.