Getty Images

Massachusetts lawmakers are wasting no time in reacting to a court ruling that upskirt photos are legal. 

A measure banning secret pictures of women's and children's "sexual or intimate parts" sailed through the House and Senate Thursday.  Penalties for those convicted call for  2 1/2 years in jail or a $5,000 fine.  If the victim was a minor, the penalties would double.

it comes a day after the state's Supreme Court ruled that photos shot up women's skirts did not violate the law.  The court said the current "Peeping Tom" law protected someone's privacy only in dressing rooms and bathrooms while naked or partially closed, but not in public. 

Governor Deval Patrick is expected to sign the bill. (Metro Networks Inc.)