Skip to content

Commit

Permalink
Nil hosts get whitelisted by default. This effectively disables Click…
Browse files Browse the repository at this point in the history
…ToFlash in Dashboard and other places where it might be desirable to do so.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
millenomi authored and rentzsch committed Mar 10, 2009
1 parent 35018c8 commit 18dbcd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Plugin/CTFWhitelist.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ - (void) _addToWhitelistAlertDidEnd: (NSAlert *)alert returnCode: (int)returnCod

- (BOOL) _isHostWhitelisted
{
// Nil hosts whitelisted by default (e.g. Dashboard)
if (!self.host)
{
return YES;
}

return [self _isWhiteListedForHostString: self.host];
}

Expand Down

0 comments on commit 18dbcd3

Please sign in to comment.