(CNN) -- The lawyer for the woman who faces 40 lashes for wearing clothes that Sudan deemed indecent called the law "degrading."



Lubna al-Hussein was told she had trousers considered too tight and a blouse too transparent.



"They ought to stop it," Nabil Adib said on Thursday. "It is quite unnecessary and degrading. It is harassment."



Lubna Al Hussein -- who writes for a newspaper and, until recently, worked for the media department of the U.N. mission in Sudan -- was arrested, along with 18 other women on July 3.



At the time of her arrest, she said, she was wearing pants, a blouse and a hijab or headscarf.



Police accused Hussein of wearing trousers that were too tight and a blouse that was too sheer, she said.  Watch more about the case »



A hearing on the case has been scheduled for Tuesday. Adib, the lawyer, seemed confident that the court would drop the case.



The indecent clothing charge has only one punishment under Sudanese law -- 40 lashes in public, according to the Arabic Network for Human Rights Information.



"These things have their ups and downs," Adib said. "These laws have generally relaxed as a matter of policy. But they are still sometimes enforced."



The Arabic Network humans rights organization said the threat of flogging was retaliation for Hussein writing critically about the Sudanese regime. However, Adib does not think his client was targeted.



"There are round-ups that they do and it is indiscriminate," he said. "I don't think she was targeted specifically. They attack public and private parties and groups. They are called 'morality police' and she was just a victim of a round-up."



U.N. Secretary-General Ban Ki-moon on Wednesday called flogging "against the international human rights standards." He said he would take every effort to protect his staff member.



However, Hussein resigned from her position with the United Nations to avoid the immunity she would have received, Adib said.



Hussein said she will stand firm that she did nothing wrong.



CNN's Umaro Djau, Talia Kayali and Tracy Doueiry contributed to this report.
What was Al-Hussein told about her clothing? Who faces 40 lashes in public? What is a possible punishment if convicted? What is Al-Hussein's punishment? What was Al-Hussein arrested for? Who was arrested for wearing indecent clothing? For what reason was Lubna Al-Hussein arrested? How many, besides Lubna Al-Hussein where also arrested?
she had trousers considered too tight and a blouse too transparent. Lubna al-Hussein 40 lashes in public, 40 lashes in public, wearing clothes that Sudan deemed indecent Lubna al-Hussein trousers considered too tight and a blouse too transparent. 18
question: What was Al-Hussein told about her clothing?, answer: she had trousers considered too tight and a blouse too transparent. | question: Who faces 40 lashes in public?, answer: Lubna al-Hussein | question: What is a possible punishment if convicted?, answer: 40 lashes in public, | question: What is Al-Hussein's punishment?, answer: 40 lashes in public, | question: What was Al-Hussein arrested for?, answer: wearing clothes that Sudan deemed indecent | question: Who was arrested for wearing indecent clothing?, answer: Lubna al-Hussein | question: For what reason was Lubna Al-Hussein arrested?, answer: trousers considered too tight and a blouse too transparent. | question: How many, besides Lubna Al-Hussein where also arrested?, answer: 18