mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Fixed bug which 'overwritewebroot' does not work with 'overwritecondaddr'.
Signed-off-by: Takahiro Nagai <78393959+takahiro-blab@users.noreply.github.com> Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
25dd264965
commit
d293293cda
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