The Dor star was travelling in Shatabdi Express and was worried that the latch was not strong enough to hold the door, but it turned out to be more strong than expected.
"Got locked in toilet of Shatabdi. Was worried about the latch not holding and thus my modesty, but turns out it held good. More than good (sic)," the avid Twitter user wrote on her account.
The 31-year-old actress struggled inside for a good 10 minutes before she managed to open the "rusted latch". "Ten min spent in wildly moving jail (toilet) was not fun. On a brighter note, about to reach C'garh (sic)," she wrote.
Gul is not the only one to have found herself in such a situation, actress Priety Zinta was locked in the Delhi airport toilet in January and had to climb out of it as the door did not budge.
Ironically, Gul was in the capital recently to propagate the right to sanitation among school children on World Health Day at a function organised by Sulabh School Sanitation Club and Sulabh International Social Service Organisation.
Priety Zinta wins POGO award
Spotted: Akshay, Priety & Celina in NYC
You can use laptops in trains soon
Arafat replaces Gul