Two friends seen acting suspiciously at T in the Park were caught with ecstasy tablets worth nearly £900 hidden inside a roll-on deodorant.
The behaviour of Paul McGee, 20, and Conor McAteer, 23, attracted the attention of security officers and a search discovered their stash of the potentially deadly pills.
Both men admitted taking drugs into the music festival to supply them to other revellers in 2013 and McAteer confessed to selling ecstasy for several months beforehand.
The two men had a total of 87 tablets worth £870 pounds. Sentence on McGee, Airthey Avenue, Glasgow, and McAteer, Crown Terrace, Glasgow, was deferred for reports.