Skip to content

Commit 18dbcd3

Browse files
millenomirentzsch
authored andcommitted
Nil hosts get whitelisted by default. This effectively disables ClickToFlash in Dashboard and other places where it might be desirable to do so.
Signed-off-by: Jonathan 'Wolf' Rentzsch <[email protected]>
1 parent 35018c8 commit 18dbcd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Plugin/CTFWhitelist.m

+6
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ - (void) _addToWhitelistAlertDidEnd: (NSAlert *)alert returnCode: (int)returnCod
149149

150150
- (BOOL) _isHostWhitelisted
151151
{
152+
// Nil hosts whitelisted by default (e.g. Dashboard)
153+
if (!self.host)
154+
{
155+
return YES;
156+
}
157+
152158
return [self _isWhiteListedForHostString: self.host];
153159
}
154160

0 commit comments

Comments
 (0)