From 23568e68f957f81702d986525c1df10bcbac45f0 Mon Sep 17 00:00:00 2001
From: Samuel Jones <samjones714@gmail.com>
Date: Mon, 13 Aug 2018 09:32:54 +0100
Subject: [PATCH] Re #23248 Sanitise the # character

Re #23248
---
 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 b5f112c34d0..94802be21c3 100644
--- a/MantidPlot/src/ProjectRecovery.cpp
+++ b/MantidPlot/src/ProjectRecovery.cpp
@@ -126,7 +126,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