The detention policy adopted by UK forces in Afghanistan has been ruled unlawful by the High Court.
The issue was part of Afghan farmer Serdar Mohammed's damages claim for assault, false imprisonment and human rights breaches.
Mohammed, from the Kajaki district of Helmand province, was captured in April 2010 on suspicion of being a Taliban commander.
He claims he was tortured into giving a false confession after being transferred to the Afghan National Directorate of Security (NDS) facility at Lashkar Gah. His allegations of ill-treatment at the hands of UK forces are strongly disputed by the Government.
Mr Justice Leggatt said today that Mohammed's arrest on April 7 and initial detention for four days was lawful but his continued detention on UK military bases for a further 106 days was unlawful under the law of Afghanistan, international law and English law.
More top news
His mother Princess Diana was killed in a car crash in Paris in 1997 when he was just 12 and his brother William was 15.
The 21-year-old, who was arrested on Sunday, also allegedly injured two other people in the attack in the German city of Reutlingen.
She was going to the aid of a family member who got out of the car in the middle of the park and was dragged away by a different tiger.