London - Wolverhampton Wanderers had to come from a goal down to beat third-tier Shrewsbury 3-2 on Tuesday in a replay of their FA Cup fourth-round match.
Wolves survived another scare from League One Shrewsbury to set up a fifth round visit to Bristol City with a 3-2 win at Molineux.
But for Matt Doherty's stoppage-time equaliser, Shrewsbury would have knocked out the side that sit seventh in the Premier League when they first met in a 2-2 draw 10 days ago.
The Irish wing-back opened the scoring for Nuno Espirito Santo's men and then levelled just before half-time after goals from James Bolton and Josh Laurent had put the Shrews 2-1 in front.
Ivan Cavaleiro then completed the Wolves comeback in the second half.
Brentford will travel to Swansea for an all-Championship tie after seeing off non-league outfit Barnet 3-1.
And Steve McClaren's Queen's Park Rangers will host Watford next after goals from Nahki Wells and Matt Smith beat Portsmouth 2-0.