No its not illegal (specifically under the Geneva convention, because it doesn't apply) as many of them were active in insurgency and terrorism. And I seriously doubt that most were arrestted without weapons or involvement in Taliban or Al Qaeda. Consult your local international lawyer for what legal conventions applies.
But you can stop the "Its against the Geneva Convention!!!" crap.