Merge pull request #4348 from offhub/fix022

Fixed browse for folder issue in resource access
This commit is contained in:
DavidXanatos 2024-11-01 13:14:38 +01:00 committed by GitHub
commit f4d1877963
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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();