Skip to content

Conversation

@gszy
Copy link

@gszy gszy commented Feb 5, 2020

The OC\AppFramework\OCS\BaseResponse::toXML() method iterates over the array provided as its parameter. It checks (among other things) if the first character of the current key of that array is @, but it doesn’t check if that key is actually a string (it may be an integer). This commit adds the missing check.

Signed-off-by: Grzegorz Szymaszek gszymaszek@short.pl

The OC\AppFramework\OCS\BaseResponse::toXML() method iterates over the
array provided as its parameter. It checks (among other things) if the
first character of the current key of that array is ‘@’, but it doesn’t
check if that key is actually a string (it may be an integer). This
commit adds the missing check.

Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl>
@rullzer
Copy link
Member

rullzer commented Feb 7, 2020

Thanks alot for your PR @gszy
It seems it was already fixed with #18926

Still please keep the fixes comming!

@rullzer rullzer closed this Feb 7, 2020
@gszy
Copy link
Author

gszy commented Feb 7, 2020

OK, nice to see it fixed.

@gszy gszy deleted the baseresponse-toxml-array-access branch February 7, 2020 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants