Skip to content

Commit 76d0ebb

Browse files
committedDec 2, 2024·
Fix security
1 parent e2e041a commit 76d0ebb

File tree

1 file changed

+1
-3
lines changed
  • xp-archive/server/src/routing

1 file changed

+1
-3
lines changed
 

‎xp-archive/server/src/routing/site.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ const setupBrowserRoutes = async (router: Router, htmlRenderer: HtmlRenderer) =>
5656
}
5757

5858
if (!content.html) {
59-
return res
60-
.status(406)
61-
.send(`Content with contentId ${contentId} does not have html content`);
59+
return res.status(406).send('This content does not have an html representation.');
6260
}
6361

6462
return res.send(content.html);

0 commit comments

Comments
 (0)
Please sign in to comment.