summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-02 19:53:22 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-03 21:32:27 +0200
commite3de746bb617d81b84678015ee8fe7f41016b2fd (patch)
tree546a9915535fe8d304ba873a166dd775172b9a43 /apps
parent578e074c009aa9c4c0dc229b1fa3772ac58ca827 (diff)
downloadnextcloud-server-e3de746bb617d81b84678015ee8fe7f41016b2fd.tar.gz
nextcloud-server-e3de746bb617d81b84678015ee8fe7f41016b2fd.zip
FF complained about missing charset.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/ajax/savecrop.php2
-rw-r--r--apps/contacts/ajax/uploadphoto.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/ajax/savecrop.php b/apps/contacts/ajax/savecrop.php
index f9a32bc3ba4..1df5299c7a6 100644
--- a/apps/contacts/ajax/savecrop.php
+++ b/apps/contacts/ajax/savecrop.php
@@ -25,7 +25,7 @@ OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
// Firefox and Konqueror tries to download application/json for me. --Arthur
-OCP\JSON::setContentTypeHeader('text/plain');
+OCP\JSON::setContentTypeHeader('text/plain; charset=utf-8');
require_once 'loghandler.php';
diff --git a/apps/contacts/ajax/uploadphoto.php b/apps/contacts/ajax/uploadphoto.php
index 7ec82603b4a..34830b291d2 100644
--- a/apps/contacts/ajax/uploadphoto.php
+++ b/apps/contacts/ajax/uploadphoto.php
@@ -26,7 +26,7 @@ OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
// Firefox and Konqueror tries to download application/json for me. --Arthur
-OCP\JSON::setContentTypeHeader('text/plain');
+OCP\JSON::setContentTypeHeader('text/plain; charset=utf-8');
require_once 'loghandler.php';
$l10n = OC_Contacts_App::$l10n;
// If it is a Drag'n'Drop transfer it's handled here.