A late equaliser from a determined Portsmouth side gave them a deserved 1-1 draw against Sunderland.
A Darren Bent penalty put the visitors ahead after Pompey's Ricardo Rocha was sent off for tripping up the striker.
Sunderland also lost two players to red cards, giving Portsmouth the advantage they needed before Aruna Dindane equalised in the 96th minute.
The draw is a much needed boost for the cash-strapped club who faced an order to close the club on Wednesday.
The club's bosses had to go to court because Portsmouth owes millions of pounds to other clubs and organisations, including the government because of unpaid tax bills.
The judge, Mrs Registrar Derrett, decided to give Portsmouth until 17 February to prove that it will be able to pay back the cash it owes.
If the court doesn't think Portsmouth can get hold of enough money it could put the club into administration, or even start closing it down.
Administration would see Portsmouth lose nine Premier League points as punishment. No Premier League club has ever gone into administration.