I received this error : CASClient::BadResponseException MALFORMED CAS RESPONSE when trying to connect to my CAS server.
I presume it's the server fault but since i can't modify it i had to monkey-patch the casclient/responses.rb to make this change :
defcheck_and_parse_xml(raw_xml)raw_xml=raw_xml.encode('UTF-8',:invalid=>:replace,:undef=>:replace,:replace=>'?')
...
endIs there a cleaner way to do it ?
I received this error : CASClient::BadResponseException MALFORMED CAS RESPONSE when trying to connect to my CAS server.
I presume it's the server fault but since i can't modify it i had to monkey-patch the casclient/responses.rb to make this change :
Is there a cleaner way to do it ?