NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Web] oAuth: Fix content type in profile reply, thanks to @this-user - fixes #3716

7d488317
andryyy <[email protected]> 6 years ago
data/web/oauth/profile.php | 1 +
 1 file changed, 1 insertion(+)

Diff

diff --git a/data/web/oauth/profile.php b/data/web/oauth/profile.php
index 3628e58b..4364c190 100644
--- a/data/web/oauth/profile.php
+++ b/data/web/oauth/profile.php
@@ -11,6 +11,7 @@ $stmt->execute(array(':username' => $token['user_id']));
 $mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
 if (!empty($mailbox)) {
   if ($token['scope'] == 'profile') {
+    header('Content-Type: application/json');
     echo json_encode(array(
       'success' => true,
       'username' => $token['user_id'],