St Patrick's Athletic 4 Bray Wanderers 2
Billy Gibson scored at the right end as St Pat's got back to wining ways at Richmond Park.
Gary O'Neill broke Bray's resolve a minute before half time when shooting home a penalty after he had been brought down by Bray keeper Steve Williams.
Keith Barker doubled Saints' lead on the hour mark, controlling Gibson's cross before shooting past Williams.
Gibson, who'd scored an own goal as Saints slumped to defeat in Derry last week, was a delighted third scorer on 66 minutes when arriving at the back post to head home John Frost's cross.
Patrick Kavanagh pulled a goal back for Bray on 86 minutes.
But Michael Keane restored Saints' three-goal lead from a quick free-kick on 92 minutes.
Bray had the last say a minute later, however, when Paul Dunphy got their second consolation goal.