Longford town moved to second spot in the Eircom League Premier Division courtesy of Saturday night's victory over Cork City.
The Midlanders can go top if they beat Finn Harps in a re-fixture tomorrow night.
Longford should have been leading at half-time after Stephen Napier was penalised for handball inside the penalty area, but Stephen Kelly's injury-time spot kick was superbly saved by Michael Devine, who followed up to deny Stuart Byrne with the rebound.
A much improved Cork took an early second-half lead. Ollie Cahill unleashed a terrific strike from 30 yards that caught Longford goalkeeper Stephen O'Brien in no man's land.
In the 57th minute Stephen Gavin's corner was headed goalward by Keith O'Connor and Stephen Kelly stabbed home the equaliser.
Longford got the winner seven minutes from time. Robbie Farrell was fouled on the edge of the penalty area and substitute Stuart Holt steered a free kick into the top right-hand corner of Michael Devine's net.
Cork's Stephen Napier received his marching orders for a second bookable offence just three minutes from time.
Longford town: O'Brien, Kenny, Coyle, Murphy, Byrne, McNally, Kelly, Notaro, Zeller, O'Connor, Gavin. Subs: Farrell for Zeller (74 mins), Holt for Gavin (79 mins), Perth for Notoro (85 mins).
Cork city: Devine, O'Halloran, O'Donoghue, Daly, Napier, O'Brien, Cahill, Flanagan, Gaughan, Morley, Mulligan. Subs: Caulfield for O'Brien (halftime), Coughlan for O'Halloran (half-time). Tynan for Mulligan (82 mins).
Referee: D Hancock (Dublin).