summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-16 08:30:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-16 08:30:11 +0100
commitf850871415b8e957c73908bc5cad195ac8c30c13 (patch)
tree0c6b5be99cc14dfe0b310900cced7f673ce4953f /apps
parent9942263409dfb7e542bd468b9f8ab895b6b35a38 (diff)
parentcb836158f0fcb264637df0f9e04fd0ec21797e32 (diff)
downloadnextcloud-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.php2
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);