mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #31001 from takahiro-blab/master
Fixed 'overwritewebroot' not work with 'overwritecondaddr'.
This commit is contained in:
commit
3f786781ef
1 changed files with 3 additions and 0 deletions
|
|
@ -161,6 +161,9 @@ class OC {
|
|||
'SCRIPT_FILENAME' => $_SERVER['SCRIPT_FILENAME'] ?? null,
|
||||
],
|
||||
];
|
||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||
$params['server']['REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
$fakeRequest = new \OC\AppFramework\Http\Request(
|
||||
$params,
|
||||
new \OC\AppFramework\Http\RequestId($_SERVER['UNIQUE_ID'] ?? '', new \OC\Security\SecureRandom()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue