Norway's highest court has upheld guilty convictions against two men involved in a 2010 al-Qaida plot to attack a Danish newspaper that caricatured the Prophet Muhammad.

Last year, a local court sentenced Mikael Davud to seven years in prison and co-defendant Shawan Sadek Saeed Bujak to three and a half years. A third defendant was acquitted of terror charges but convicted of helping the others acquire explosives.

In its Friday decision, the Supreme Court quashed their appeals, finding the men guilty.

Investigators say the plot was linked to the same al-Qaida planners behind thwarted attacks against the New York subway system and a shopping mall in Manchester, England, in 2009. Norwegian investigators, who worked with their U.S. counterparts, said they had been building a bomb in an Oslo basement.