Carrick Rangers beat east Antrim rivals Larne to book a home Irish Cup sixth round tie against Institute.
The Inver Park match had been rearranged because the first match was abandoned when Larne player Scott Irvine sustained a serious head injury.
Miguel Chines gave Carrick the lead with a 38th-minute penalty.
James McCabe poked in a Larne equaliser in the second half but Conor McCloskey headed the winner for Carrick in the 75th minute.
Carrick's match against Premiership side Institute will be at Taylor's Avenue on 7 February.
The gate receipts from Tuesday's game went to a fund to help Larne player Irvine.
He sustained a fractured skull when he crashed into a perimeter wall during the first half of the original game on 10 January.
Fans applauded during the seventh minute of the rearranged match in a gesture of support to the player who wears Larne's number seven shirt.
Carrick got their penalty when Aidan Watson was fouled by Stuart Scott. The spot-kick from Chines just about beat Larne keeper John Connolly who got a hand on to the ball.
McCabe equalised in the 65th minute, stabbing in after keeper Brian Neeson had blocked an initial effort by Gerard Reynolds.
Rangers edged the victory thanks to McCabe's header from a corner by substitute Ryan Kane.