Skip to content

Commit

Permalink
Solves issue RocketChat#1 at user input
Browse files Browse the repository at this point in the history
  • Loading branch information
kamushadenes committed Mar 13, 2017
1 parent 930e983 commit 0d9adcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Template.createCombinedFlex.events

'click .save-channel': (e, instance) ->
err = SideNav.validate()
name = instance.find('#channel-name').value.toLowerCase().trim()
name = instance.find('#channel-name').value.toLowerCase().trim().replace(/</g, "&lt;").replace(/>/g, "&gt;")
privateGroup = instance.find('#channel-type').checked
readOnly = instance.find('#channel-ro').checked
createRoute = if privateGroup then 'createPrivateGroup' else 'createChannel'
Expand Down

0 comments on commit 0d9adcd

Please sign in to comment.