LOS ANGELES -- Lindsay Lohan has been released from jail, but she's not exactly a free woman.

Lohan was freed from the Century Regional Detention Facility in Lynwood at 1:35 a.m. Monday after serving 14 days of a 90-day sentence for violating her probation in a 2007 drug case, a sheriff's spokesman said. She was then required to directly enter rehab for three months. The actress was ordered to receive treatment at UCLA Medical Center in Westwood.

Judge Marsha Revel apparently had a change of heart after first picking Morningside Recovery in Orange County against the wishes of two court-appointed psychiatrists and medical professionals.

Lohan's attorney Shawn Chapman Holley visited the actress at the Lynwood jail Friday. She said Lohan was doing fine and was looking forward to her release.

According to prosecutors, the actress will have to spend the entire time in rehab.

TMZ.com reports that a source close to the case says Lohan will be treated for addiction to methamphetamine and bipolar disorder.

The 24-year-old actress was sentenced to 90 days in jail, but spent 14 days because of prison overcrowding.

Some say Lohan received preferential treatment while behind bars.

Lohan's mother Dina and sister Ali visited her at the Lynwood jail on a Wednesday, despite the fact that other inmates have to wait until the weekend for visitors.

Law enforcement officials responded by saying, "Lindsay might get visitors after the official visiting hours are over for the other inmates for security reasons. It's for the safety of everyone."

Lohan also received some of her usual prescription medications while behind bars.

Dylan Howard, Senior Executive Editor for RadarOnline, told KTLA that up until recently, Lohan has been "using a near lethal cocktail of drugs" including "Adderall, anti-depressants and the highly powerful drug Dilantin."

And, KTLA has learned, the actress could order food from a special store and get certain items delivered that the jail wouldn't give her.

The program, called the Keefe Commissary Network Gift Pack Program, gives inmates $135 worth to spend on items like refried beans, Spam, Kit Kat bars, cookies and cupcakes.

Lohan's first jailhouse meal was turkey casserole.

The 24-year-old was "completely cooperative" when she was booked into the jail, officials said.

She was subject to a strip search and given an orange jail jumpsuit before her booking photo was taken and her belongings were confiscated. Among the items taken was Hemingway's famous novel "The Old Man and the Sea." Her family will be allowed to order a replacement book, according to RadarOnline.

Lindsay went through a triage of mental and psychological tests, according to L.A. County Sheriff's spokesman Steve Whitmore who predicted the first 24 to 48 hours would be the toughest for the starlet as she adjusted to life behind bars.

Lohan received a baggie of generic toiletries and shown to her tiny jail cell.