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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user