ContentSecurityPolicy: Add trailing & to report urls
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 19 May 2018 09:30:17 +0000 (09:30 +0000)
committerKrinkle <krinklemail@gmail.com>
Tue, 22 May 2018 22:20:43 +0000 (22:20 +0000)
commitc14e9ed13ae7e177afe6c9ffaf39c59f4c8369b8
tree8503920fa9d9c5fe0e28f3f7dffddd8fb3aeb18e
parent39ca88374ed3bb9c40ea7fe0ff4c5e79e1ebef6e
ContentSecurityPolicy: Add trailing & to report urls

This works around a bug in HHVM, where it treats post body as part of
request parameters, even if content-type is application/json.

See https://github.com/facebook/hhvm/issues/6676.

Change-Id: Id54d6657056dee56fc71100dedfb3b53d512eaba
includes/ContentSecurityPolicy.php
tests/phpunit/includes/ContentSecurityPolicyTest.php