Ga. Muslim jailed over head scarf

and how was security compromised if the lady was wearing head-scarve? they can simply do a scan, is that too difficult with the technology?