Issues

ZF-12380: Error on Zend_Amf_Request AMF3 with no parameters

Description

In a test context with a forged AMF3 request, the error "Undefined offset: 0" occurred. In the request, it was no parameter, only a response is expected, eg the current date. The error occured in Zend_Amf_Request->readBody line 186.

The solution is to add the test :



The patch to apply is  :

if(is_array($data) && isset ($data [0]) && $data[0] instanceof Zend_Amf_Value_Messaging_AbstractMessage){ ```

Comments

No comments to display