Jimmy Dunne scored an 89th-minute winner as QPR came from behind to beat Preston 2-1 and extend their unbeaten run in the Championship to seven matches.
Milutin Osmajic took advantage of Steve Cook tumbling to the ground injured and put the visitors ahead after 21 minutes.
But Rangers overcame that setback and Rayan Kolli’s third goal in his past four appearances hauled them level.
Preston, themselves unbeaten in their previous six games, were reduced to 10 men with seven minutes left when Liam Lindsay picked up a second yellow card for a challenge on Kieran Morgan.
And the hosts took advantage, with defender Dunne heading in Ilias Chair’s cross at the far post.
QPR started well and Kenneth Paal had a great chance to put them ahead but fired against the crossbar after Paul Smyth’s pull-back, while Dunne went close with a header.
But Rangers soon found themselves a goal down, with their captain taken off with a worrying-looking injury.
Experienced defender Cook looked set to clear the danger when he went down in agony, which enabled Osmajic to run through and slot home from the edge of the penalty area.
That enraged the home fans who felt Osmajic showed a lack of sportsmanship or that the game should have been stopped.
And there was concern for Cook, who was helped from the pitch after refusing to get on a stretcher.
Rangers would have equalised almost immediately had keeper Freddie Woodman not managed to push away Kolli’s header, and they went close again when Dunne headed wide from Paal’s cross.
They did draw level five minutes into the second half. Smyth exchanged passes with Dunne on the right and pulled the ball back for 19-year-old forward Kolli, who shot through Woodman’s legs.
Sam Field had a chance to put QPR ahead but fired wide after being found by Morgan’s cross.
Shortly after Lindsay’s dismissal, Rangers hit the woodwork for the second time, with Smyth’s strike thumping against the crossbar.
They were then denied by a double save from Woodman, who kept out Chair’s shot and Smyth’s attempt to force in the rebound.
But Woodman was unable to prevent Dunne getting the goal his wholehearted performance deserved.
Rangers, bottom of the Championship a few weeks ago, held on in stoppage time to record a third consecutive home win.
But the injury to Cook will be a major concern for a side who have had a number of fitness problems to contend with this season.