![Mideast Egypt Media](https://a57.foxnews.com/static.foxnews.com/foxnews.com/content/uploads/2018/09/1200/675/Mideast-Egypt-Media_Bake.jpg?ve=1&tl=1)
In this Thursday, Aug. 23, 2012 photo, Newspaper editor Islam Afifi, right, walks out of a Cairo police station hours after a court had ordered Afifi to remain in prison pending trial in September over accusations of slandering the president and harming public interest for inflammatory articles published in el-Dustour newspaper in Cairo, Egypt. Hours after the court decision was announced, President Mohammed Morsi passed his first law since assuming lawmaking powers banning the imprisonment of journalists who face trial on media-related charges. (AP Photo/Ahmed Abd el Fatah
The editor of an independent Egyptian daily was released from jail late Thursday just hours after the country's Islamist president issued a law that bans the imprisonment of journalists accused of media-related offenses.
The case against Islam Afifi has sparked an outcry from journalists and intellectuals who view the lawsuit as an attack on free speech similar to the types of legal maneuvering used by the former regime of authoritarian ruler Hosni Mubarak, who was ousted in a last year's popular uprising, to silence its opponents.
Afifi, who is the editor-in-chief of the el-Dustour newspaper owned by the leader of the opposition Wafd Party, has been charged with slandering the president and harming public interest with inflammatory articles. He had already been banned from traveling abroad.
A Cairo court on Thursday ordered Afifi to remain in jail pending trial in September. Hours after the court's decision, President Mohammed Morsi issued a law that bans imprisoning journalists for media-related charges until court verdicts are handed down.
Afifi, who still faces trial, was photographed smiling and being greeted by newspaper staff after his release late Thursday.
The decree affecting those awaiting trial for offenses such as libel, defamation and slander is the first law Morsi has issued since assuming legislative powers earlier this month in the absence of a parliament, and following a decision to retire a cadre of generals with whom he had shared powers.
Morsi, who is a member of the Egypt's powerful Muslim Brotherhood, became the country's first freely elected civilian president in late June.
Since Morsi took office, el-Dustour has regularly published articles warning of alleged Brotherhood plots and conspiracies to turn Egypt into a fundamentalist Islamic state. It also promoted an anti-Brotherhood demonstration on Friday, initially calling for the torching of Brotherhood offices but later amending its call and instead urging protesters to hold peaceful rallies in Cairo.
The protests Friday against the Brotherhood were small, but seen as a significant test of how Morsi will respond to the opposition.
The case against Afifi is one of several lawsuits brought forward mainly by Islamists against journalists in Egypt, accusing them of inflammatory coverage and inciting the public against the Brotherhood.
The New York-based Committee to Protect Journalists hailed the law issued by Morsi, but urged authorities to halt "an alarming rise in repression that has included newspaper confiscations, criminal prosecutions, and assaults against journalists."