Skip to content
Snippets Groups Projects
Commit 7d8ac326 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Remove all spaces from ignored hosts setting

parent 297f7b53
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ getUrlContent = (urlObj, redirectCount = 5, callback) ->
parsedUrl = _.pick urlObj, ['host', 'hash', 'pathname', 'protocol', 'port', 'query', 'search', 'hostname']
ignoredHosts = RocketChat.settings.get('API_EmbedIgnoredHosts').replace(' ', '').split(',') or []
ignoredHosts = RocketChat.settings.get('API_EmbedIgnoredHosts').replace(/\s/g, '').split(',') or []
if parsedUrl.hostname in ignoredHosts or ipRangeCheck(parsedUrl.hostname, ignoredHosts)
return callback()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment