[Pkg-owncloud-commits] [owncloud] 01/06: Use JS as content-type due to mimesniffing
David Prévot
taffit at moszumanska.debian.org
Tue Apr 29 18:35:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v5.0.16
in repository owncloud.
commit e08490cb4b1f813635d905883f3813b75e162f45
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Thu Apr 17 10:40:19 2014 +0200
Use JS as content-type due to mimesniffing
---
settings/js/apps-custom.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/settings/js/apps-custom.php b/settings/js/apps-custom.php
index d827dfc..2b2f256 100644
--- a/settings/js/apps-custom.php
+++ b/settings/js/apps-custom.php
@@ -9,8 +9,8 @@
// Check if admin user
OC_Util::checkAdminUser();
-// Set the content type to JSON
-header('Content-type: application/json');
+// Set the content type to JS
+header('Content-type: application/javascript');
// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
@@ -23,4 +23,4 @@ foreach($combinedApps as $app) {
echo("\n");
}
-echo ("var appid =".json_encode($_GET['appid']).";");
\ No newline at end of file
+echo ("var appid =".json_encode($_GET['appid']).";");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list