From efc91b015d8b8eab99c166caddd80d36020b0498 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 9 Dec 2015 10:07:37 +0100 Subject: [PATCH] Fixes #1589 --- lib/core/dump.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/dump.py b/lib/core/dump.py index 058f5d9e9..15c0c14e9 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -578,7 +578,8 @@ class Dump(object): if not os.path.isdir(dumpDbPath): os.makedirs(dumpDbPath, 0755) - filepath = os.path.join(dumpDbPath, "%s-%d.bin" % (unsafeSQLIdentificatorNaming(column), randomInt(8))) + _ = re.sub(r"[^\w]", "_", normalizeUnicode(unsafeSQLIdentificatorNaming(column))) + filepath = os.path.join(dumpDbPath, "%s-%d.bin" % (_, randomInt(8))) warnMsg = "writing binary ('%s') content to file '%s' " % (mimetype, filepath) logger.warn(warnMsg)