A poster publicising the new law at a Malaysia train station: the first person to run foul of it has been jailed

A Malaysian court Monday handed a Danish man a one-week jail term for breaking a law against "fake news", the first person to be punished under the controversial legislation.

The law, passed in early April, makes the deliberate dissemination of false information punishable by up to six years in jail and a hefty fine. It has sparked outrage from rights groups, who believe it is aimed at cracking down on dissent.

Salah Salem Saleh Sulaiman, a 46-year-old of Yemeni descent, admitted making and posting on YouTube a video accusing emergency services of responding slowly after a Palestinian Hamas member was gunned down in Kuala Lumpur.

Fadi al-Batsh, said to be a rocket-making expert, was on his way to dawn prayers on April 21 when he was assassinated by motorbike-riding gunmen, a killing his family have blamed on Israel's spy agency. The Jewish state has denied it was behind the murder.

The Dane, who did not have a lawyer and was wearing white robes and a green skullcap during a court appearance in Kuala Lumpur, said he was not aware of Malaysia's laws.

"I agree I did a mistake because I didn't ask what is the law of this country," he said, speaking in English, his hands trembling.

- 'Surprised, disappointed' -

A clip of the video played in court, which lasted almost two minutes, showed him speaking in Arabic and complaining about what he claimed was the slow response of the police and ambulance service after the shooting.

Authorities have disputed his claims.

Judge Zaman Mohamad Noor sentenced him to a week in jail, including time already served since his April 23 arrest, and fined him 10,000 ringgit ($2,500). If he cannot pay the fine, then he will have to serve another month in jail, the judge said.

The Dane, who had been on a 10-day visit to Malaysia when the crime was committed, said he did not have enough money to pay the fine. He said he had three wives and six children.

The law banning fake news has sparked concern the government is seeking to crack down on criticism, particularly with a general election looming on May 9.

Leading independent news portal Malaysiakini last week mounted the first legal challenge against the legislation, arguing in the Kuala Lumpur High Court that it breaches constitutional guarantees of freedom of speech.

Malaysian legal reform group Lawyers for Liberty said they were "surprised and disappointed" that Monday's prosecution went ahead even though the law was being challenged in court.

"Bringing criminal charges against a person is a serious matter," said N. Surendran, an adviser to the group, in a statement.

"Surely where the legality of the law has been a question of national debate, enforcement should await the authoritative decision of the courts."

A poster publicising the new law at a Malaysia train station: the first person to run foul of it has been jailed