A Bradley Orr own goal was enough to propel Cardiff to a home tie against Leicester after a 1-0 victory in their FA Cup third round replay against Bristol City.
The teams had drawn 1-1 last week at Ashton Gate, with the Robins levelling with a superb goal by Gavin Williams when the Bluebirds appeared destined to go through.
With less than 17 minutes to go Michael Chopra hit the post and Orr then put through his own net from six yards.
Doncaster will travel to fellow Coca-Cola Championship club Derby on Saturday after a late James O'Connor goal saw them overcome Brentford.
The south Yorkshire club had the better of the chances in the capital, Brian Stock forcing Lewis Price to tip his effort over, but the tie appeared to be heading for a replay. However, Stock turned provider and O'Connor headed home from inside the six-yard box from James Chambers' corner.
Notts County earned a fourth-round meeting with Premier League Wigan after they edged out Forest Green Rovers 2-1 at Meadow Lane.
Graeme Lee's volley hit the bar and soon after County were ahead through Stephen Hunt's close-range shot.
Kasper Schmeichel was called upon to save with his feet from Jonathan Smith as the Blue Square Premier club hit back and they were rewarded with a 63rd-minute equaliser through Isaiah Rankin. However, less than a minute later Lee Hughes restored the hosts' lead with a 25-yard shot high into the net.
Accrington Stanley will play Fulham after beating Gillingham 1-0.
Both sides created chances, with Gills keeper Simon Royce especially busy in the first half, but the deadlock was not broken until nine minutes from time. John Miles slotted home to earn the League Two club a tie against the Cottagers.
Copyright (c) PA Sport 2009, All Rights Reserved.