Skip to content

Commit

Permalink
fix: escape quotes in Welcome title and message (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig authored Jan 4, 2022
1 parent 459ef3e commit bb374d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ const STIGMAN = {
apiBase: "${config.client.apiBase}",
welcome: {
image: "${config.client.welcome.image}",
title: "${config.client.welcome.title}",
message: "${config.client.welcome.message}",
title: "${config.client.welcome.title.replace(/"/g, '\\"')}",
message: "${config.client.welcome.message.replace(/"/g, '\\"')}",
link: "${config.client.welcome.link}"
},
commit: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/js/SM/MainPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ SM.DocWidget = Ext.extend(Ext.Panel, {
`</div>`,

`<div class='sm-home-widget-text'>`,
`<div class='sm-home-widget-subtitle'> Just Geting Started? </div>`,
`<div class='sm-home-widget-subtitle'> Just Getting Started? </div>`,
`Check out our <a target="_blank" href="docs/user-guide/user-quickstart.html">User Walkthrough</a> or the <a target="_blank" href="docs/user-guide/user-guide.html">User Guide</a>`,
`</div>`,

Expand Down

0 comments on commit bb374d1

Please sign in to comment.