lib/flipper/ui/actions/actors_gate.rb in flipper-ui-0.10.1 vs lib/flipper/ui/actions/actors_gate.rb in flipper-ui-0.10.2
- old
+ new
@@ -22,10 +22,10 @@
end
def post
feature_name = Rack::Utils.unescape(request.path.split('/')[-2])
feature = flipper[feature_name.to_sym]
- value = params["value"]
+ value = params["value"].to_s.strip
if Util.blank?(value)
error = Rack::Utils.escape("#{value.inspect} is not a valid actor value.")
redirect_to("/features/#{feature.key}/actors?error=#{error}")
end