mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-01 18:41:52 +02:00
Update server settings authLoginCustomMessage to sanitize on save and load
This commit is contained in:
@@ -5,11 +5,10 @@ const { entities } = require('./htmlEntities')
|
||||
*
|
||||
* @param {string} html
|
||||
* @returns {string}
|
||||
* @throws {Error} if input is not a string
|
||||
*/
|
||||
function sanitize(html) {
|
||||
if (typeof html !== 'string') {
|
||||
throw new Error('sanitizeHtml: input must be a string')
|
||||
return ''
|
||||
}
|
||||
|
||||
const sanitizerOptions = {
|
||||
|
||||
Reference in New Issue
Block a user