diff --git a/client/homebrew/pages/errorPage/errors/errorIndex.js b/client/homebrew/pages/errorPage/errors/errorIndex.js index caa5e662c..1353cf889 100644 --- a/client/homebrew/pages/errorPage/errors/errorIndex.js +++ b/client/homebrew/pages/errorPage/errors/errorIndex.js @@ -1,4 +1,5 @@ const dedent = require('dedent-tabs').default; +import _ from 'lodash'; const loginUrl = 'https://www.naturalcrit.com/login'; @@ -89,7 +90,7 @@ const errorIndex = (props)=>{ : - **Brew Title:**
${props.brew.brewTitle || 'Unable to show title'}
+ **Brew Title:** ${_.escape(props.brew.brewTitle) || 'Unable to show title'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
@@ -104,7 +105,7 @@ const errorIndex = (props)=>{
:
- **Brew Title:** ${props.brew.brewTitle || 'Unable to show title'}
+ **Brew Title:** ${_.escape(props.brew.brewTitle) || 'Unable to show title'}
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
@@ -181,7 +182,7 @@ const errorIndex = (props)=>{
**Brew ID:** ${props.brew.brewId}
- **Brew Title:** ${props.brew.brewTitle}`,
+ **Brew Title:** ${_.escape(props.brew.brewTitle)}`,
// ####### Admin page error #######
'52' : dedent`