remove carridge returns when parsing alias CSVs
This commit is contained in:
parent
9cb7946d69
commit
9ab6fec30a
@ -139,6 +139,7 @@ class AliasEditor implements Extension {
|
||||
}
|
||||
|
||||
private function add_alias_csv($database, $csv) {
|
||||
$csv = str_replace("\r", "\n", $csv);
|
||||
foreach(explode("\n", $csv) as $line) {
|
||||
$parts = explode(",", $line);
|
||||
if(count($parts) == 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user