Cork City 3 Bray Wanderers 1
John O'Flynn hit a hat-trick as Cork stayed on course for Europe.
Cork had the dream start with O'Flynn firing home his first from Danny Murray's through ball after just 13 minutes.
Bray hit back to level two minutes into the second half.
Michael Devine could only parry a shot from Jason Byrne and Barry O'Connor shot home the rebound.
But O'Flynn struck again on 63 minutes to break Bray hearts when ghosting past two defenders to shoot the winner past John Walsh before completing the hat-trick on 76 minutes.