Added fix from Otto Bretz to solve issue with forms using 'multipart/form-data' encoding.

CSRF token was not read properly.