Considering the torture we saw overseen by the Mountain or Ramsay, the treatment of prisoners was rather mild, doing no permanent damage to Cersei (though she kept her short hair afterward for some reason). And Cersei was able to get out of his custody by pretending to be penitent.