diff --git a/CHANGELOG.md b/CHANGELOG.md index a7ce92d2eb..519db29956 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - fixed Sign the .tmp file that gets dropped when installing or updating Sandboxie Plus [#2643](https://github.com/sandboxie-plus/Sandboxie/issues/2643) - +- fixed Files Resource Access - Browse for Folder - allows access to excluded folders [#4007](https://github.com/sandboxie-plus/Sandboxie/issues/4007) diff --git a/SandboxiePlus/SandMan/Windows/OptionsAccess.cpp b/SandboxiePlus/SandMan/Windows/OptionsAccess.cpp index 5688000f35..0c1f3d8261 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAccess.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAccess.cpp @@ -379,6 +379,10 @@ void COptionsWindow::OnBrowseFolder() if (Value.isEmpty()) return; + // Add a trailing backslash if it does not exist + if (!Value.endsWith("\\")) + Value.append("\\"); + AddAccessEntry(eFile, eOpen, "", Value); OnAccessChanged();