Skip to content

Commit df438cc

Browse files
committed
Removed handlebars-helpers because of security vulnerability
https://snyk.io/vuln/npm:underscore.string:20170908
1 parent 38252d7 commit df438cc

File tree

4 files changed

+11
-759
lines changed

4 files changed

+11
-759
lines changed

default-views/account/register-form.hbs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@
7171
</span>
7272
</div>
7373

74-
{{#if (and enforceToc tocUri)}}
75-
<div class="checkbox">
76-
<label>
77-
<input type="checkbox" name="acceptToc">
78-
I agree to the <a href="{{tocUri}}" target="_blank">Terms &amp; Conditions</a> of this service
79-
</label>
80-
</div>
74+
{{#if enforceToc}}
75+
{{#if tocUri}}
76+
<div class="checkbox">
77+
<label>
78+
<input type="checkbox" name="acceptToc">
79+
I agree to the <a href="{{tocUri}}" target="_blank">Terms &amp; Conditions</a> of this service
80+
</label>
81+
</div>
82+
{{/if}}
8183
{{/if}}
8284

8385

lib/create-app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module.exports = createApp
33
const express = require('express')
44
const session = require('express-session')
55
const handlebars = require('express-handlebars')
6-
const handlebarsHelpers = require('handlebars-helpers')
76
const uuid = require('uuid')
87
const cors = require('cors')
98
const LDP = require('./ldp')
@@ -166,8 +165,7 @@ function initViews (app, configPath) {
166165
app.set('views', viewsPath)
167166
app.engine('.hbs', handlebars({
168167
extname: '.hbs',
169-
partialsDir: viewsPath,
170-
helpers: handlebarsHelpers()
168+
partialsDir: viewsPath
171169
}))
172170
app.set('view engine', '.hbs')
173171
}

0 commit comments

Comments
 (0)