From 9498a3d2852ace0f4ee23598f542dbce3fd2ec28 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 2 Sep 2012 15:19:34 +0200 Subject: Update to MediaWiki 1.19.2 --- includes/api/ApiFormatBase.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'includes/api') diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 543c90ce..1eee717a 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -143,6 +143,12 @@ abstract class ApiFormatBase extends ApiBase { $this->getMain()->getRequest()->response()->header( "Content-Type: $mime; charset=utf-8" ); + //Set X-Frame-Options API results (bug 39180) + global $wgApiFrameOptions; + if ( $wgApiFrameOptions ) { + $this->getMain()->getRequest()->response()->header( "X-Frame-Options: $wgApiFrameOptions" ); + } + if ( $isHtml ) { ?> -- cgit v1.2.2