Merge pull request #4152 from JayDi85/patch-2

fix issue #4148 on download image cards with quotation mark in names
This commit is contained in:
theelk801 2017-11-09 23:29:58 -05:00 committed by GitHub
commit 9c9db6cf96
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";