-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,10 +61,7 @@ module.exports = React.createClass({ | |
this.setState({ page: "Couldn't load home page" }); | ||
} | ||
|
||
// We parse the JSON ourselves rather than use the JSON | ||
// parameter, since this throws a parse error on empty | ||
// which breaks if there's no config.json and we're | ||
// loading from the filesystem (see above). | ||
body.replaceAll(/_t\(['"](.*?)['"]\)/, (match)=>{ return sanitizehtml_t(match[1]) }); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lukebarnard1
Contributor
|
||
this.setState({ page: body }); | ||
} | ||
); | ||
|
This will fail if any strings contain
'
or"