diff options
author | Max Semenik <maxsem.wiki@gmail.com> | 2019-10-05 01:20:49 -0700 |
---|---|---|
committer | MaxSem <maxsem.wiki@gmail.com> | 2019-10-06 10:16:09 +0000 |
commit | 06a275f48eab0a91238993c0794ef5fb1dce13b3 (patch) | |
tree | dc1249c901e4ec44f45303a1ad198fb08d514efa /includes/ContentSecurityPolicy.php | |
parent | 0b4419f7eea9fe8a5877bb0d991462b029718b9d (diff) | |
download | mediawikicore-06a275f48eab0a91238993c0794ef5fb1dce13b3.tar.gz mediawikicore-06a275f48eab0a91238993c0794ef5fb1dce13b3.zip |
Remove more HHVM hacks
Change-Id: I6bd298ef3b887173b87004ee055be2a4f6ea5f11
Diffstat (limited to 'includes/ContentSecurityPolicy.php')
-rw-r--r-- | includes/ContentSecurityPolicy.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/ContentSecurityPolicy.php b/includes/ContentSecurityPolicy.php index be598eae8314..7971b9db9de2 100644 --- a/includes/ContentSecurityPolicy.php +++ b/includes/ContentSecurityPolicy.php @@ -279,11 +279,8 @@ class ContentSecurityPolicy { } $reportUri = wfAppendQuery( wfScript( 'api' ), $apiArguments ); - // Per spec, ';' and ',' must be hex-escaped in report uri - // Also add an & at the end of url to work around bug in hhvm - // with handling of POST parameters when always_decode_post_data - // is set to true. See https://github.com/facebook/hhvm/issues/6676 - $reportUri = $this->escapeUrlForCSP( $reportUri ) . '&'; + // Per spec, ';' and ',' must be hex-escaped in report URI + $reportUri = $this->escapeUrlForCSP( $reportUri ); return $reportUri; } |