Cardiff City eased into the third round of the Capital One Cup but their win at Accrington Stanley was marred by a worrying injury to Andreas Cornelius.
The Denmark striker, a £7.5m summer buy from Copenhagen, crumpled under a heavy tackle and was carried off.
His replacement, Rudy Gestede, made the most of his chance, adding a calm finish to Jordon Mutch's cross.
Nicky Maynard had opened the scoring with a fine piece of skill, flicking over the defence before firing home.
Cardiff's reward for beating Accrington is a third round tie away at West Ham United, their conquerors on the opening day of the Premier League season.
While Cardiff boss Malky Mackay will be pleased his side have progressed in the competition, his major concern will be the injury to Cornelius.
The 20-year-old was top scorer in the 2012-13 Danish Superliga, scoring 18 goals in 32 appearances, but his pre-season was curtailed by an ankle problem.
Mackay confirmed after the match that Cornelius has suffered an ankle strain and will miss Saturday's home league game against Everton, but the striker will have a scan on Thursday to further assess the damage.
Andreas Cornelius - a Dane yet to make his mark
- Born: 16 March, 1993 (20)
- Height: 1.93m (6ft 4in)
- Clubs: FC Copenhagen, Cardiff City
- International: 7 caps for Denmark, 1 goal
It was hard luck on the Dane who had been handed his first competitive start of the season, as Mackay named a completely new starting XI from the one that shocked Manchester City in the Premier League on Sunday.
Club captain Mark Hudson also made his first start of the season.
Accrington gave a debut to goalkeeper Marcus Bettinelli, who has been signed on an emergency loan from Fulham to cover for the injured Ian Dunbavin.
The home side had knocked out Middlesbrough in the previous round, but were so weakened by injuries and the suspension of Danny Webber that manager James Beattie, the former England striker, had considered naming himself on the bench.
In the end Beattie resisted the temptation to reprise last season's role on the pitch, but his side could have done with his eye for goal.
Kal Naismith did get a shot at goal in a turgid opening half-hour, but it was straight at Cardiff goalkeeper Joe Lewis who gathered the ball at the second attempt.
Instead it was Cardiff who came closest to scoring, as centre-back Hudson had his set-piece header cleared off the Accrington goal-line by Luke Joyce.
The half ended on a sour note for the Premier League side as Cornelius went down under a heavy block-tackle clutching his left ankle.
A stretcher was summoned to take the stricken Dane to the sidelines and Gestede came on to replace him.
There was greater attacking intent after the break and home striker Will Hatfield wasted no time in letting loose a shot in the area, only to see it deflected behind by Kevin McNaughton.
But Cardiff dashed the League Two side's hopes with two spectacular goals within 90 seconds.
First Maynard flicked the ball over his marker, spun away in pursuit and hit the ball first time past a helpless Bettinelli in the Accrington goal.
Accrington had barely absorbed the set-back before they found themselves two down, as Mutch strode through a gap before crossing for Gestede to smash into the back of the net.
Cardiff boss Malky Mackay: "That could have been a potential banana skin tonight if we hadn't gone out and been professional.
"We knew they were going to try and pack the area and make it difficult for us. We had to keep shifting the ball from side to side and eventually little gaps open up, which is what happened.
"As the second half wore on we were increasingly influential and looked as if we were going to score."
Accrington manager James Beattie: "The lads are disappointed in there. There's no shame in that performance at all. I thought it was very good. All the units were working a lot better tonight, the shape was good, the discipline was good.
"They can hold their heads high. I would put it up there with the Middlesbrough performance [in the last round when Accrington won 2-1].
"Now we just need to replicate that Capital One Cup performance in the league and there'll be no problem whatsoever."
- 26 Bettinelli
- 02 Murphy (McCartan - 83' )
- 03 Liddle Booked
- 05 Aldred
- 25 Atkinson
- 04 Joyce
- 08 Richardson
- 10 Hatfield
- 11 Naismith (Carver - 72' )
- 15 Mingoia (Mahoney - 72' )
- 14 Clark Booked
- 30 Wilson
- 18 Carver
- 20 Windass
- 23 Mahoney
- 29 Jenkins
- 07 McCartan
- 17 Gray
- 32 Lewis
- 05 Hudson
- 12 Brayford
- 25 McNaughton
- 42 John
- 14 Smith (Conway - 65' Booked )
- 16 Noone
- 18 Mutch
- 19 Cowie
- 09 Cornelius (Gestede - 45' )
- 23 Maynard (Mason - 75' )
- 33 Moore
- 41 Oshilaja
- 22 Conway
- 24 Lappin
- 40 Harris
- 15 Gestede
- 20 Mason
Live Text Commentary
Full Time The referee ends the match.90:00 +3:10
Clearance by Tom Aldred.90:00 +3:07
Craig Noone sends in a cross.90:00 +2:57
Marcus Bettinelli manages to make a clearance.90:00 +2:52
Corner taken by Craig Conway.90:00 +2:38
Michael Liddle manages to make a clearance.90:00 +2:34
The ball is crossed by Declan John.90:00 +1:26
Marcus Bettinelli restarts play with the free kick.90:00 +1:23
Joe Mason is caught offside.90:00 +0:33
Shot by Michael Richardson missed to the right of the net.89:50
Michael Richardson makes a clearance.89:44
Craig Noone sends in a cross.89:10
Shay McCartan takes a shot and went wide of the left-hand upright.88:10
Tom Aldred makes a clearance.87:59
Free kick crossed by Craig Conway.87:33
Marcus Carver concedes a free kick for a foul on Craig Conway.87:19
Tom Aldred manages to make a clearance.87:17
Craig Noone sends in a cross.85:51
Marcus Bettinelli takes the free kick.85:46
The assistant referee flags for offside against Joe Mason.
Craig Noone has an effort at goal. Marcus Bettinelli parries the ball away.84:49
Shot by Luke Clark cleared the crossbar.84:34
Shot on goal comes in from Luke Joyce from the free kick. Craig Noone gets a block in.84:07
Foul by Don Cowie on Will Hatfield, free kick awarded.83:41
Marcus Bettinelli makes a clearance.83:25
Craig Conway has an effort at goal. Marcus Bettinelli catches the ball.82:12 Substitution
Substitution Shay McCartan replaces Peter Murphy.81:52
Luke Clark crosses the ball.80:55
Rudy Gestede manages to make a clearance.80:49
Will Hatfield crosses the ball in from the free kick.80:38 Booking
Booking for Craig Conway.80:24
Craig Conway gives away a free kick for an unfair challenge on Marcus Carver.79:56
Mark Hudson heads at goal.79:42
Corner from the left by-line taken by Craig Noone.79:18
Clearance by Marcus Bettinelli.79:03
The ball is swung over by Craig Conway.77:18
Mark Hudson manages to make a clearance.77:15
The ball is sent over by Peter Murphy.74:27
Don Cowie restarts play with the free kick.74:06 Substitution
Substitution Joe Mason replaces Nicky Maynard.73:50
Free kick awarded for an unfair challenge on Craig Conway by Michael Richardson.71:54
Declan John takes the free kick.71:30 Substitution
Substitution Marcus Carver comes on in place of Kal Naismith.71:22 Substitution
Substitution Piero Mingoia goes off and Connor Mahoney comes on.70:54 Booking
Luke Clark booked for unsporting behaviour.70:47
Luke Clark challenges Declan John unfairly and gives away a free kick.68:09
Craig Noone takes a shot and missed to the right of the goal.66:48
Kevin McNaughton manages to make a clearance.66:44
A cross is delivered by Peter Murphy.65:53
Free kick taken by Don Cowie.65:43
Unfair challenge on Jordon Mutch by Luke Joyce results in a free kick.65:33
Joe Lewis makes a clearance.65:21
Luke Clark produces a cross.64:22 Substitution
Substitution Craig Conway is brought on as a substitute for Tommy Smith.64:04
Luke Clark has a direct shot on goal from the free kick and misses the right post.63:18
Foul by Jordon Mutch on Michael Richardson, free kick awarded.62:50
Marcus Bettinelli restarts play with the free kick.62:34
Rudy Gestede is caught offside.61:40
Assist on the goal came from Jordon Mutch.61:40 Goal scored
Goal! - Rudy Gestede - Accrington 0 - 2 Cardiff Rudy Gestede scores a right footed goal. Accrington Stanley 0-2 Cardiff.60:15
Assist on the goal came from Tommy Smith.60:15 Goal scored
Goal! - Nicky Maynard - Accrington 0 - 1 Cardiff Nicky Maynard scores with their right foot. Accrington Stanley 0-1 Cardiff.59:49
Clearance made by Tom Aldred.59:47
The ball is sent over by John Brayford.58:56
Header by Jordon Mutch goes to the left of the goal.58:38
Corner from the right by-line taken by Craig Noone.58:18
Clearance made by Luke Joyce.58:12
The ball is delivered by Tommy Smith.56:54
Declan John takes the free kick.56:46
Foul by Luke Clark on Craig Noone, free kick awarded.54:44
Shot comes in from Peter Murphy from the free kick which clears the target.54:41
Free kick taken by Peter Murphy.53:42
Craig Noone concedes a free kick for a foul on Peter Murphy.53:06
Tommy Smith takes the chance to get an effort at goal. Rob Atkinson gets a block in.52:23
The ball is delivered by Luke Clark.50:16
Shot by Jordon Mutch cleared the net.49:25
Joe Lewis restarts play with the free kick.48:10
Unfair challenge on Kevin McNaughton by Kal Naismith results in a free kick.46:27
Jordon Mutch makes a clearance.46:19
Corner from the left by-line taken by Luke Joyce.46:01
Michael Richardson has an effort at goal. Blocked by Kevin McNaughton.45:01
The match restarts for the second half.45:00 +4:18 Half time
Half Time The referee calls an end to the first half.45:00 +3:39
Clearance by Tom Aldred.45:00 +3:32
Kevin McNaughton takes the free kick.45:00 +3:01
Foul by Peter Murphy on Craig Noone, free kick awarded.44:29 Substitution
Substitution Rudy Gestede joins the action as a substitute, replacing Andreas Cornelius.41:56
Joe Lewis restarts play with the free kick.41:49
Unfair challenge on Craig Noone by Kal Naismith results in a free kick.39:41
Declan John produces a cross.39:29
Free kick taken by Declan John.39:12
Michael Liddle is shown a yellow card for unsporting behaviour.39:12 Booking
Unfair challenge on Craig Noone by Michael Liddle results in a free kick.38:51
Clearance by John Brayford.38:46
Luke Joyce produces a cross.38:42
Corner from the left by-line taken by Luke Joyce.38:31
Mark Hudson manages to make a clearance.38:20
Luke Joyce takes the free kick.37:53
Free kick awarded for an unfair challenge on Kal Naismith by Mark Hudson.35:17
Clearance made by Jordon Mutch.34:54
Corner taken by Luke Joyce from the left by-line.33:19
Kevin McNaughton restarts play with the free kick.32:58
Free kick awarded for a foul by Kal Naismith on Mark Hudson.31:48
Clearance made by Rob Atkinson.31:43
The ball is crossed by John Brayford.30:34
Marcus Bettinelli manages to make a clearance.30:26
The ball is swung over by Jordon Mutch.27:11
Clearance made by Rob Atkinson.27:05
Craig Noone crosses the ball.23:14
Luke Joyce makes a clearance.22:44
Header at goal by Mark Hudson. Marcus Bettinelli parries the ball away.22:30
Corner from the right by-line taken by Craig Noone.22:10
Shot by Craig Noone. Michael Richardson gets a block in.21:38
Joe Lewis makes a clearance.21:24
Piero Mingoia crosses the ball.20:35
Marcus Bettinelli makes a clearance.20:21
Craig Noone produces a cross.20:02
Kal Naismith takes the chance to get an effort at goal. Joe Lewis safely holds on.18:49
Peter Murphy makes a clearance.18:42
Corner taken by Craig Noone from the right by-line.16:31
The ball is swung over by John Brayford.10:47
Free kick taken by Declan John.10:37
Unfair challenge on Craig Noone by Piero Mingoia results in a free kick.9:54
Craig Noone sends in a cross.6:31
Luke Joyce manages to make a clearance.6:24
Don Cowie crosses the ball in from the free kick.5:51
Unfair challenge on Craig Noone by Tom Aldred results in a free kick.4:30
Free kick taken by Don Cowie.4:20
Tommy Smith fouled by Peter Murphy, the ref awards a free kick.3:54
Clearance by Marcus Bettinelli.3:40
Corner from the right by-line taken by Don Cowie.3:00
Rob Atkinson manages to make a clearance.2:21
Clearance made by Marcus Bettinelli.2:05
John Brayford sends in a cross.0:00
The referee gets the match started.
Live data and text provided by our data suppliers