From ec83122213ea50f5703829167b4b9d3becd2c0e9 Mon Sep 17 00:00:00 2001
From: David Fairbrother <DavidFair@users.noreply.github.com>
Date: Wed, 4 Jul 2018 15:14:51 +0100
Subject: [PATCH] Re #22780 Add slash chars to blacklist

---
 MantidPlot/src/ProjectRecovery.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MantidPlot/src/ProjectRecovery.cpp b/MantidPlot/src/ProjectRecovery.cpp
index cc869bb0f3f..67df55190c5 100644
--- a/MantidPlot/src/ProjectRecovery.cpp
+++ b/MantidPlot/src/ProjectRecovery.cpp
@@ -136,7 +136,7 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) {
 
 std::string removeInvalidFilenameChars(std::string s) {
 	// NTFS is most restrictive, so blacklist on this
-	std::string blacklistChars{ ":*\"?<>|" };
+	std::string blacklistChars{ ":*?<>|/\"\\" };
 	boost::remove_erase_if(s, boost::is_any_of(blacklistChars));
 	return s;
 }
-- 
GitLab