diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-19 13:58:13 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-19 13:58:13 +0100 |
commit | 23e27dd53599be65b2dc2968448ce155a00a96c9 (patch) | |
tree | cd7e5c88a345584a25c7ea03a81332b804d082d6 /server/helpers/core-utils.ts | |
parent | c7a9f34f7229529ea726de13867f87c0a8dd3007 (diff) | |
download | PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.tar.gz PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.tar.zst PeerTube-23e27dd53599be65b2dc2968448ce155a00a96c9.zip |
Add ability to configure log level
Diffstat (limited to 'server/helpers/core-utils.ts')
-rw-r--r-- | server/helpers/core-utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts index 77547c528..65f18d644 100644 --- a/server/helpers/core-utils.ts +++ b/server/helpers/core-utils.ts | |||
@@ -50,6 +50,8 @@ function root () { | |||
50 | 50 | ||
51 | // Thanks: https://stackoverflow.com/a/12034334 | 51 | // Thanks: https://stackoverflow.com/a/12034334 |
52 | function escapeHTML (stringParam) { | 52 | function escapeHTML (stringParam) { |
53 | if (!stringParam) return '' | ||
54 | |||
53 | const entityMap = { | 55 | const entityMap = { |
54 | '&': '&', | 56 | '&': '&', |
55 | '<': '<', | 57 | '<': '<', |