Deduplicate slashes

This commit is contained in:
Joas Schilling 2016-02-15 10:54:56 +01:00
parent 2054dbd4c8
commit cb836158f0
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);