summaryrefslogtreecommitdiff
path: root/app/Services/UserService.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-06-25 16:56:39 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-06-25 17:04:40 +0100
commitadd3fa4120ca696c713a0d0ac9b9c86f751fe49a (patch)
tree7ae5d1b083c8dc88d52add03aa2b2ae26707a20f /app/Services/UserService.php
parentd1bca350232df40efa2ae08b7de42c468a885f60 (diff)
downloadwebtrees-add3fa4120ca696c713a0d0ac9b9c86f751fe49a.tar.gz
webtrees-add3fa4120ca696c713a0d0ac9b9c86f751fe49a.tar.bz2
webtrees-add3fa4120ca696c713a0d0ac9b9c86f751fe49a.zip
Fix: #2447 - better detection of client_ip and request_uri
Diffstat (limited to 'app/Services/UserService.php')
-rw-r--r--app/Services/UserService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/UserService.php b/app/Services/UserService.php
index 308f7409e7..8c7d83a914 100644
--- a/app/Services/UserService.php
+++ b/app/Services/UserService.php
@@ -339,7 +339,7 @@ class UserService
$url = route('contact', [
'ged' => $tree ? $tree->name() : '',
'to' => $contact_user->userName(),
- 'url' => (string) $request->getUri(),
+ 'url' => $request->getAttribute('request_uri'),
]);
}