[ticket/12001] Ensure that form data is sent to server in AJAX requests.

PHPBB3-12001
Merge pull request #1856 from prototech/ticket/12001

[ticket/12001] Ensure that form data is sent to server in AJAX requests.