UCD 0-1 Derry City
David McDaid's 71st-minute goal earned Derry City victory over UCD in the FAI Ford Cup clash in Dublin.
Derry dominated the first half with Stewart Greacen having a header cleared off the line and McDaid also going close on two occasions.
Robbie Benson wasted a glorious UCD chance before McDaid volleyed home after keeper Mark McGinley had flapped at a inswinging corner.
Greacen was controversially sent off late in the game but Derry held on.
The Derry players and bench were left furious when referee Anthony Buttimer handed central defender Greacen a second yellow card on 87 as he was ruled to have kicked the ball away in dissent after UCD had been awarded a free-kick.
Derry players appeared to claim that the offence had been committed by another Candystripe but referee Buttimer refused to change his decision.
Buttimer had earlier booked McDaid for diving in the 48 minutes after the striker had rounded keeper McGinley with the Derry players left astonished that a penalty hadn't been awarded instead.
Derry started briskly with McDaid firing a great chance over in the fourth minute after being played in by Owen Morrison.
McGinley then made a smart stop to deny McDaid before Greacen saw his goalbound header cleared off the line by Barry McCabe in the 23rd minute.
As Derry continued to dominate, UCD's Mick Leahy produced a brave block to deny a Stephen McLaughlin piledriver.
Derry's frustration at their failure to turn possession into a goal was increased with McDaid's controversial booking three minutes after the restart.
Benson should have put the Students ahead on 61 minutes as he headed a Ciaran Nangle cross over the bar from pointblank range.
It proved a crucial miss with McDaid looping Derry ahead 10 minutes later.
The game threatened to boil over three minutes from the end of normal time as tempers became frayed following Greacen's sending off.
However despite five minutes of injury time, Derry held on to earn a place in the last eight.