Its not a fluke, in the knock out stages extra time and penalties apply, therefore Portugal are just doing what is necessary to progress.
There are no replays, and with 3 points for a win drawing all 3 games in the group stage should not see you progress but thanks to a banned Frenchman we now...