summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-17 10:40:19 +0200
committerMorris Jobke <morris.jobke@gmail.com>2014-04-25 16:48:33 +0200
commite08490cb4b1f813635d905883f3813b75e162f45 (patch)
tree51f0bbbc79dba11528a262f93e2738cf607d6ea0
parente2ab6027c31b3de3d8759244b8f47dcb9e2977f5 (diff)
downloadnextcloud-server-e08490cb4b1f813635d905883f3813b75e162f45.tar.gz
nextcloud-server-e08490cb4b1f813635d905883f3813b75e162f45.zip
Use JS as content-type due to mimesniffing
-rw-r--r--settings/js/apps-custom.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/apps-custom.php b/settings/js/apps-custom.php
index d827dfc7058..2b2f256b39f 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']).";");