diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-16 08:30:11 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-16 08:30:11 +0100 |
commit | f850871415b8e957c73908bc5cad195ac8c30c13 (patch) | |
tree | 0c6b5be99cc14dfe0b310900cced7f673ce4953f /apps | |
parent | 9942263409dfb7e542bd468b9f8ab895b6b35a38 (diff) | |
parent | cb836158f0fcb264637df0f9e04fd0ec21797e32 (diff) | |
download | nextcloud-server-f850871415b8e957c73908bc5cad195ac8c30c13.tar.gz nextcloud-server-f850871415b8e957c73908bc5cad195ac8c30c13.zip |
Merge pull request #22385 from owncloud/issue-22384-invalid-content-location-on-commenting
Posting a comment replies with invalid location URL
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/comments/commentsplugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/comments/commentsplugin.php b/apps/dav/lib/comments/commentsplugin.php index 7abf6e71ee5..fb9f5b7ab8a 100644 --- a/apps/dav/lib/comments/commentsplugin.php +++ b/apps/dav/lib/comments/commentsplugin.php @@ -121,7 +121,7 @@ class CommentsPlugin extends ServerPlugin { // having their own comments marked as unread $node->setReadMarker(null); - $url = $request->getUrl() . '/' . urlencode($comment->getId()); + $url = rtrim($request->getUrl(), '/') . '/' . urlencode($comment->getId()); $response->setHeader('Content-Location', $url); |