London: Lena Dunham says she "felt sick" when a judge ruled Kesha couldn't leave her recording contract.

Lena Dunham. Pic/AFP
Lena Dunham. Pic/AFP

The "Girls" actress was horrified to learn that a court has decreed the "Tik Tok" hitmaker must abide by her agreement with producer Dr Luke, despite her claims he sexually abused

"When I saw the outcome of Kesha's court case last Friday, I felt sick. Actually sick -- I wanted to ask my Uber to pull over so I could throw up in a New York City trash can," she said.

Dunham also hit out at Sony Music for opting to engage in a "protracted legal battle" with Kesha when they could have made the case "go away" by agreeing to let her record with someone other than Dr Luke, whose real name is Lukasz Gottwald.

Dunham continued in an essay for her Lenny newsletter: "Sony could make this go away. But instead the company has chosen to engage in a protracted legal battle to protect Gottwald's stake in Kesha's future.

"Although the company insists that Kesha and Gottwald never need to be in a room together and that he will allow her to record without his direct involvement, they are minimizing what Kesha says regarding how Gottwald's continued involvement in her career would affect her physical well-being and psychological safety.

"So let me spell it out for them. Imagine someone really hurt you, physically and emotionally. Scared you and abused you, threatened your family."