LOS ANGELES – A judge granted Lindsay Lohan a restraining order against a man who left chocolates at her house and sent her bizarre text messages saying that they are engaged, court records show.

David Cocordan, 38, has been contacting Lohan for nearly two years and sent her more than 100 texts, including one that describes having sex with the actress, the documents state.

“Given this obsessive and harassing behavior, I am frightened of Mr. Cocordan and feel that my personal safety, and the safety of those around me, is in jeopardy,” Lohan said in the legal filing.

Superior Court Judge David Cowan granted the temporary order Thursday, prohibiting Cocordan from attempting to meet or contact the actress.

The judge will consider whether to issue a three-year stay away order June 8.

Cocordan, who police believe has schizophrenia and is not taking medication, has told authorities he does not intend to contest the restraining order, according to court filings.

A phone message left at a listing for Cocordan was not immediately returned Friday.

Lohan’s publicist, Steve Honig, said he would not comment on Lohan’s security matters.

One text message contained in the court documents indicates Cocordan was in the courtroom last month when the 24-year-old actress was sentenced to 120 days in jail.

Filmmaker sees bright side of being banned

MOUGINS, France – Danish filmmaker Lars von Trier remains contrite and respectful of the Cannes Film Festival over its decision to toss him out for saying he sympathizes with Adolf Hitler.

Yet he also relishes the label he gained as the world’s most-prestigious cinema showcase ostracized one of its favorite sons.

“‘Persona non grata’ is a wonderful word,” von Trier said Friday, a day after Cannes organizers banned him from the rest of this year’s festival for his comments about Hitler, Nazis and Jews at a press conference for his festival film “Melancholia.”

“I’m not at all happy about what happened, but the word is something like an order you get,” said von Trier, gesturing as though pointing out a medal pinned to his chest.

Overnight, von Trier has gone from celebrated Cannes veteran to a pariah no longer welcome at the festival that bestowed its highest honor, the Palme d’Or, in 2000 for his drama “Dancer in the Dark.”

“Melancholia” still is eligible for the Palme d’Or and other prizes.

At the news conference Wednesday, von Trier said that while Hitler “did some wrong things,” he could understand the Nazi leader and “sympathize with him a little bit.” He quickly added that he supported the Jews but then wisecracked, “not too much, because Israel is a pain in the ass.”

Von Trier issued an apology and said he was only joking, but the remarks brought condemnation from Jewish and Holocaust groups.

Cocaine puts musician in jail for 6 months

LONDON – Musician Pete Doherty has been jailed for six months after pleading guilty to possession of cocaine.

The troubled British rocker was sentenced by an east London court Friday.

He had been arrested by police probing the death of heiress Robin Whitehead, who died from a suspected drug overdose last year. Doherty, 32, ex-boyfriend of supermodel Kate Moss, was suspected of supplying Whitehead with drugs.

The Babyshambles frontman, who has a history of drug use, had been due to perform a concert in Scotland on Friday evening.