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

Trace

data/web/autodiscover-json.php

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

autodiscover-json.php on main
Author Date Commit Line Code
Michael Kuron almost 9 years ago c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
1
<?php
Open commit View diff
1 <?php
André almost 8 years ago 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
2
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
Open commit View diff
2 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/vars.inc.php';
same change 9f0be1d

[Web] Fix require_once to always include document root

Full commit hash
9f0be1d8a84b3077e23ec96921b1bea5815adb0a
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
3
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.inc.php';
Open commit View diff
3 require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/functions.inc.php';
Michael Kuron almost 9 years ago c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
4
$default_autodiscover_config = $autodiscover_config;
Open commit View diff
4 $default_autodiscover_config = $autodiscover_config;
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
5
if(file_exists('inc/vars.local.inc.php')) {
Open commit View diff
5 if(file_exists('inc/vars.local.inc.php')) {
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
6
  include_once 'inc/vars.local.inc.php';
Open commit View diff
6 include_once 'inc/vars.local.inc.php';
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
7
}
Open commit View diff
7 }
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
8
$autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
Open commit View diff
8 $autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
9
Open commit View diff
9
same change c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
10
header('Content-type: application/json');
Open commit View diff
10 header('Content-type: application/json');
andryyy about 6 years ago 3d48620

[SOGo] Disable autodiscover-json for EAS when disabled

Full commit hash
3d48620980fdfe452c8a40a66157afc95e1acd8c
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
11
if (strtolower($_GET['Protocol']) == 'activesync' && getenv('SKIP_SOGO') != "y") {
Open commit View diff
11 if (strtolower($_GET['Protocol']) == 'activesync' && getenv('SKIP_SOGO') != "y") {
Michael Kuron almost 9 years ago c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
12
  echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
Open commit View diff
12 echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
André Peters almost 9 years ago e1ee1e8

Update autodiscover-json.php

Full commit hash
e1ee1e848fd9afc19a0338243e6cff46a434c75e
Author
André Peters <[email protected]>
Date
almost 9 years ago
Selected line
13
}
Open commit View diff
13 }
André Peters over 7 years ago d29adba

Update autodiscover-json.php

Full commit hash
d29adbae0205ff6d127d430cd718323176e66f71
Author
André Peters <[email protected]>
Date
over 7 years ago
Selected line
14
elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') {
Open commit View diff
14 elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') {
Phoenix Eve Aspacio over 8 years ago 91ccc47

Make Capitalization Consistent

Full commit hash
91ccc470247682f2a596a0cdc07843576b1122e6
Author
Phoenix Eve Aspacio <[email protected]>
Date
over 8 years ago
Selected line
15
  echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}';
Open commit View diff
15 echo '{"Protocol":"AutodiscoverV1","Url":"https://' . $_SERVER['HTTP_HOST'] . '/Autodiscover/Autodiscover.xml"}';
André Peters almost 9 years ago e1ee1e8

Update autodiscover-json.php

Full commit hash
e1ee1e848fd9afc19a0338243e6cff46a434c75e
Author
André Peters <[email protected]>
Date
almost 9 years ago
Selected line
16
}
Open commit View diff
16 }
same change e1ee1e8

Update autodiscover-json.php

Full commit hash
e1ee1e848fd9afc19a0338243e6cff46a434c75e
Author
André Peters <[email protected]>
Date
almost 9 years ago
Selected line
17
else {
Open commit View diff
17 else {
Michael Kuron almost 9 years ago c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
18
  http_response_code(400);
Open commit View diff
18 http_response_code(400);
andryyy almost 5 years ago 8e736ba

[Web] Fix potential XSS in autodiscover-json.php

Full commit hash
8e736ba9b0a4d2d33bac30844a5e8756182eb0fc
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
19
  echo '{"ErrorCode":"InvalidProtocol","ErrorMessage":"The given protocol value \u0027' . preg_replace("/[^\da-z]/i", '', $_GET['Protocol']) . '\u0027 is invalid. Supported values are \u0027ActiveSync,AutodiscoverV1\u0027"}';
Open commit View diff
19 echo '{"ErrorCode":"InvalidProtocol","ErrorMessage":"The given protocol value \u0027' . preg_replace("/[^\da-z]/i", '', $_GET['Protocol']) . '\u0027 is invalid. Supported values are \u0027ActiveSync,AutodiscoverV1\u0027"}';
Michael Kuron almost 9 years ago c731a18

Preliminary support for Outlook 2016’s autodiscover.json

Full commit hash
c731a18f661d4c782e09104cecb3744fd023e874
Author
Michael Kuron <[email protected]>
Date
almost 9 years ago
Selected line
20
}
Open commit View diff
20 }
André Peters almost 9 years ago e1ee1e8

Update autodiscover-json.php

Full commit hash
e1ee1e848fd9afc19a0338243e6cff46a434c75e
Author
André Peters <[email protected]>
Date
almost 9 years ago
Selected line
21
?>
Open commit View diff
21 ?>