fix issue #4148 on download image cards with quotation mark in names

This commit is contained in:
Oleg Agafonov 2017-11-10 02:25:32 +04:00 committed by GitHub
parent 451d697307
commit 62aed011a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ public final class CardImageUtils {
String imageName;
String type = card.getType() != 0 ? ' ' + Integer.toString(card.getType()) : "";
String name = card.getFileName().isEmpty() ? card.getName().replace(":", "").replace("//", "-") : card.getFileName();
String name = card.getFileName().isEmpty() ? card.getName().replace(":", "").replace("\"", "").replace("//", "-") : card.getFileName();
if (card.getUsesVariousArt()) {
imageName = name + '.' + card.getCollectorId() + ".full.jpg";