From 62aed011a3415934c1cd6fc7245cd9304184fb23 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 10 Nov 2017 02:25:32 +0400 Subject: [PATCH] fix issue #4148 on download image cards with quotation mark in names --- .../main/java/org/mage/plugins/card/utils/CardImageUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/utils/CardImageUtils.java b/Mage.Client/src/main/java/org/mage/plugins/card/utils/CardImageUtils.java index ac45d2a2f8..7cbe1ec9a0 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/utils/CardImageUtils.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/utils/CardImageUtils.java @@ -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";