Sadio Mane scored as Senegal beat nine-man Cape Verde 2-0 in the last 16 at the Africa Cup of Nations, but then was forced off with concussion.
Mane curled in off the underside of the crossbar soon after keeper Vozinha had been dismissed following a nasty clash of heads with the Liverpool forward.
Mane continued despite appearing to be briefly knocked out in the incident.
After celebrating his goal he lay down on halfway, and before the game restarted he was led off the field.
Cape Verde midfielder Patrick Andrade had been shown a straight red card midway through the first half, and Bamba Dieng added Senegal's second in second-half injury time.
The match in Bafoussam was preceded by a minute's silence for the victims of the crush at the Olembe Stadium on Monday.
Senegal will face either Mali or Equatorial Guinea in the last eight on Sunday.Africa Cup of Nations fixtures
Concern for Mane after clash
Tournament organisers the Confederation of African Football may have questions to answer about their concussion protocols after Vozinha and Mane were both floored in the 53rd minute.
The Cape Verde keeper rushed out of his box in an attempt to intercept a long kick downfield by Senegal keeper Edouard Mendy, and collided head-first at pace with Mane, who had got to the ball first and headed forward.
After a lengthy stoppage a clearly groggy Vozinha was about to be substituted but, following a video assistant referee review, deserved to receive Cape Verde's second red card for his reckless challenge.
Somehow Mane was deemed fit to continue and, after having a shot saved by substitute keeper Marcio Rosa, the forward then broke the deadlock from the resulting corner.
With further medical assessments to follow, Mane will surely be a doubt for Senegal's quarter-final tie.
More red cards in knock-out stages
Senegal had topped their group despite scoring once in just three matches, and spurned several more chances in front of goal.
Mane hit the right-hand upright in the first minute, and the Teranga Lions had a man advantage 20 minutes later when Andrade was dismissed following a VAR consultation.
He had caught Pape Gueye on the top of the ankle with his studs and his initial yellow was upgraded to red, meaning all five last-16 ties at the tournament have had at least one sending-off.
Two men down, Cape Verde had few forays forward and Julio Tavares had their best chance with five minutes left but tamely flicked a cross straight at Mendy.
Dieng, who had earlier sent two attempts wide, wrapped up the game from a counter-attack as the islanders pushed for a late equaliser.
Senegal were runners-up in 2019 and remain among the favourites to win the Nations Cup, but coach Aliou Cisse will need further improvements in the final third if the West Africans are to lift the trophy for the first time.
Formation 4-3-316Mendy20Sarr3Koulibaly22Diallo2CissSubstituted forBallo-Touréat 82'minutesSubstituted forMbayeat 90+5'minutes5Gueye6MendyBooked at 72mins26GueyeSubstituted forLopyat 82'minutes9Dia19Diédhiou10ManéSubstituted forDiengat 70'minutes
Formation 3-4-31Évora DiasBooked at 57mins17Fortès4LopesSubstituted forMonteiro Sanches Borgesat 45'minutes2dos Santos Tavares22Fortes7Correia AndradeBooked at 21mins18Rocha SantosSubstituted forTavaresat 75'minutes16Tavares dos SantosSubstituted forOliveira Borgesat 69'minutes11Mendes RodriguesSubstituted forBrazão da Rosaat 59'minutes20Mendes da GraçaSubstituted forVarela Semedoat 75'minutes10Monteiro Alvarenga
Substitutes3Monteiro Sanches Borges5Oliveira Borges8Varela Semedo9Benchimol Tavares12Brazão da Rosa14dos Santos Rodrigues15Alvés Furtado19Tavares23Sousa Ramos24Moreira Fernandes25Semedo Afonso26Spinola Lima
Match ends, Senegal 2, Cabo Verde 0.
Second Half ends, Senegal 2, Cabo Verde 0.
Substitution, Senegal. Ibrahima Mbaye replaces Fodé Ballo-Touré because of an injury.
Goal! Senegal 2, Cabo Verde 0. Bamba Dieng (Senegal) right footed shot from the centre of the box to the centre of the goal. Assisted by Famara Diédhiou following a fast break.
Foul by Idrissa Gueye (Senegal).
Lisandro Semedo (Cabo Verde) wins a free kick in the defensive half.
Corner, Senegal. Conceded by Nuno Borges.
Attempt blocked. Famara Diédhiou (Senegal) header from the centre of the box is blocked.
Corner, Senegal. Conceded by Stopira.
Foul by Kalidou Koulibaly (Senegal).
Júlio Tavares (Cabo Verde) wins a free kick on the left wing.
Attempt saved. Júlio Tavares (Cabo Verde) right footed shot from the centre of the box is saved in the centre of the goal. Assisted by Lisandro Semedo with a cross.
Attempt missed. Idrissa Gueye (Senegal) right footed shot from the left side of the six yard box is close, but misses to the left. Assisted by Bamba Dieng.
Attempt saved. Joseph Lopy (Senegal) left footed shot from the centre of the box is saved in the centre of the goal.
Hand ball by Jamiro Monteiro (Cabo Verde).
Substitution, Senegal. Fodé Ballo-Touré replaces Saliou Ciss.
Substitution, Senegal. Joseph Lopy replaces Pape Gueye.
Corner, Senegal. Conceded by Diney.
Attempt missed. Bamba Dieng (Senegal) right footed shot from outside the box is close, but misses to the left.
Attempt missed. Bamba Dieng (Senegal) right footed shot from outside the box misses to the right. Assisted by Saliou Ciss.