replace illegal filename characters in wallet name with underscores
@@ -53,6 +53,10 @@ public class WalletNameDialog extends Dialog<WalletNameDialog.NameAndBirthDate>
final VBox content = new VBox(20);
name = (CustomTextField)TextFields.createClearableTextField();
name.setText(initialName);
+ name.setTextFormatter(new TextFormatter<>((change) -> {
+ change.setText(change.getText().replaceAll("[\\\\/:*?\"<>|]", "_"));
+ return change;
+ }));
content.getChildren().add(name);
HBox existingBox = new HBox(10);
