Skip to content

Commit

Permalink
Zero width (#4110)
Browse files Browse the repository at this point in the history
Remove zero-width characters from the beginning and end of all parameters in all controller actions

* Add String#remove_zero_width_chars to remove all zero width unicode characters
* Add before action in ApplicationController to strip zero-width
characters from all parameters including child arrays and hashes.

Co-authored-by: Sumith Baddam <sumith.reddy2@gmail.com>
  • Loading branch information
SumithBaddam authored and Dananji committed Oct 26, 2020
1 parent 5b8cc3e commit a5a86c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/avalon.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'string_additions'
require 'avalon/errors'
# Loads configuration information from the YAML file and then sets up the
# dropbox
Expand Down

0 comments on commit a5a86c8

Please sign in to comment.