From d216f30f477197af5d7468a25dfbf3209b4ad174 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 28 Feb 2016 11:37:35 -0500 Subject: [PATCH] More secure coding implementation forgot to remove --- Sparkle/SUHost.m | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index c412011a..36380b7b 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -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]))