remove carridge returns when parsing alias CSVs
This commit is contained in:
parent
c3cc2f6097
commit
4d5a8c9303
@ -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