Justice Manmohan Singh said, in an order made available Monday, that the curbs were not applicable to the theatre version of Ranbir Kapoor and Deepika Padukone starrer, which was released in the cinema halls last week.
The court also issued notices to the director, producer and dialogue writers of "YJHD" and posted the matter for hearing July 16.
The court's order came on an injunction suit filed by Hamdard National Foundation, the manufacturer of Rooh Afza.
The manufacturer claimed that the product was a household name in the country and outside India and the film contained some "objectionable" dialogues about the Unani recipe.
Spotted: Virat Kohli, Anushka Sharma and other celebs at Mumbai airport
Photos: Salman Khan's 'special friend' Iulia Vantur at a song launch
In Pictures: Sex scandals involving Indian politicians
Photos: Abhishek Bachchan and Farah Khan at Boman Irani's birthday bash
Spotted: Shah Rukh Khan at Morani's bungalow in Mumbai