-
-
Notifications
You must be signed in to change notification settings - Fork 274
Handle ip behind proxies #914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
fc33876
98ad57f
66bf671
8676f77
02faef6
dcff53c
bb458e6
27c00fb
3771d43
a26eccf
0b472cd
e5a17ad
b7e3265
d853540
da74e1a
66a1a78
7a36207
6cbfdec
a1e9bc3
0b36b40
0dadc39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# file that keeps track of the latest tag in cvs and the corresponding version | ||
# this automates publishing a new version, when it's tagged | ||
# if you don't understand this, don't worry. You don't need this file | ||
VERSION=3.6.13 | ||
VERSION=3.6.14-dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -516,7 +516,7 @@ | |
define('NOTIFY_SPAM', 1); | ||
} | ||
if (!defined('CLICKTRACK_LINKMAP')) { | ||
define('CLICKTRACK_LINKMAP', 0); | ||
define('CLICKTRACK_LINKMAP', false); | ||
} | ||
if (!defined('SIGN_WITH_HMAC')) { | ||
define('SIGN_WITH_HMAC', false); | ||
|
@@ -713,13 +713,22 @@ | |
$attachment_repository = $tmpdir; | ||
} | ||
|
||
if (isset($pageroot)) { | ||
if ($pageroot == '/') { | ||
$pageroot = ''; | ||
if (defined('USER_WWWROOT')) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
if (!isset($pageroot)) { | ||
$pageroot = parse_url(USER_WWWROOT, PHP_URL_PATH); | ||
} | ||
$publicConfigBaseUrl = USER_WWWROOT; | ||
} else { | ||
$pageroot = '/lists'; | ||
if (isset($pageroot)) { | ||
if ($pageroot == '/') { | ||
$pageroot = ''; | ||
} | ||
} else { | ||
$pageroot = '/lists'; | ||
} | ||
$publicConfigBaseUrl = "http://[WEBSITE]$pageroot"; | ||
} | ||
|
||
// as the "admin" in adminpages is hardcoded, don't put it in the config file | ||
$adminpages = $GLOBALS['pageroot'].'/admin'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is using |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is of the admin URL not the public URL, but should it still be a valid test when
ADMIN_WWWROOT
is used?When using the new
USER_WWWROOT
andADMIN_WWWROOT
Which value should $pageroot in config.php be set to?