Apple fixes security flaw used to target porn viewers