mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
More secure coding implementation forgot to remove
This commit is contained in:
1 parent
8af18843ef
commit
d216f30f47
1 file changed
-20
Vendored
-20
@@ -28,26 +28,6 @@
|
||||
@synthesize defaultsDomain;
|
||||
@synthesize usesStandardUserDefaults;
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)decoder
|
||||
{
|
||||
NSURL *bundleURL = [decoder decodeObjectOfClass:[NSURL class] forKey:@"bundleURL"];
|
||||
if (bundleURL == nil) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
NSBundle *aBundle = [NSBundle bundleWithURL:bundleURL];
|
||||
if (aBundle == nil) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
return [[[self class] alloc] initWithBundle:aBundle];
|
||||
}
|
||||
|
||||
- (void)encodeWithCoder:(NSCoder *)encoder
|
||||
{
|
||||
[encoder encodeObject:self.bundle.bundleURL forKey:@"bundleURL"];
|
||||
}
|
||||
|
||||
- (instancetype)initWithBundle:(NSBundle *)aBundle
|
||||
{
|
||||
if ((self = [super init]))
|
||||
|
||||
Reference in new issue
Block a user