A Malaysian court on Tuesday upheld the conviction of opposition leader Anwar Ibrahim on the charge of sodomizing a former political aide, the Malaysian national news agency Bernama reported.