Lawyers for the partner of former Guardian journalist Glenn Greenwald are challenging the lawfulness of his detention at London's Heathrow Airport.

Greenwald has written a series of stories based on material leaked by former U.S. National Security Agency contractor Edward Snowden. His partner David Miranda, a 28-year-old university student, was held and questioned at Heathrow for nearly nine hours in August under terrorism legislation. Miranda had been traveling home to Brazil after visiting Germany, where he met with Laura Poitras, a U.S. filmmaker who has worked with Greenwald on the NSA stories.

Miranda had unsuccessfully sued to stop police from combing through material seized from him during the search.

The judicial review Wednesday at London's High Court will examine whether Miranda's detention was an abuse of terror legislation.