1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-03-11 04:42:20 +00:00

Don't accept path substitutions.

This commit is contained in:
Thomas Harte
2025-11-23 21:28:12 -05:00
parent 80590d4434
commit 2e780e2b11

View File

@@ -106,10 +106,10 @@ struct PermissionDelegate: public Storage::FileBundle::FileBundle::PermissionDel
// Possibly substitute the base path, in case the one returned
// is an indirection out of the sandbox.
if(![selectedURL isEqual:[url URLByDeletingLastPathComponent]]) {
NSLog(@"Substituting base path: %@", selectedURL.path);
bundle.set_base_path(std::string(selectedURL.path.UTF8String));
}
// if(![selectedURL isEqual:[url URLByDeletingLastPathComponent]]) {
// NSLog(@"Substituting base path: %@", selectedURL.path);
// bundle.set_base_path(std::string(selectedURL.path.UTF8String));
// }
// Store bookmark data for potential later retrieval.
// That amounts to this application remembering the user's permission.