Merge pull request #22385 from owncloud/issue-22384-invalid-content-location-on-commenting

Posting a comment replies with invalid location URL
This commit is contained in:
Thomas Müller 2016-02-16 08:30:11 +01:00
commit f850871415
1 changed files with 1 additions and 1 deletions

View File

@ -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);