diff options
author | Robin Kluth <Commifreak@users.noreply.github.com> | 2024-02-19 11:18:37 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-24 11:34:34 +0100 |
commit | d70cd5add23b66a5009c492727002c19db431b95 (patch) | |
tree | 463e6b8fdbcb69f9ffc3f3e2176473d3440fda5f /lib/private/Http | |
parent | 3343626183a90412dfd4104f47e94b76e72710f0 (diff) | |
download | nextcloud-server-d70cd5add23b66a5009c492727002c19db431b95.tar.gz nextcloud-server-d70cd5add23b66a5009c492727002c19db431b95.zip |
Log Host/IP in `LocalServerException` for `Host violates local access rules`
Signed-off-by: Robin Kluth <Commifreak@users.noreply.github.com>
Diffstat (limited to 'lib/private/Http')
-rw-r--r-- | lib/private/Http/Client/Client.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index 3bf43e6c07e..26a0a63378b 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -192,7 +192,7 @@ class Client implements IClient { throw new LocalServerException('Could not detect any host'); } if (!$this->remoteHostValidator->isValid($host)) { - throw new LocalServerException('Host violates local access rules'); + throw new LocalServerException('Host "'.$host.'" violates local access rules'); } } |