lib/kiev/util.rb in kiev-4.3.0 vs lib/kiev/util.rb in kiev-4.4.0
- old
+ new
@@ -2,9 +2,10 @@
module Kiev
module Util
def self.sanitize(value)
return unless value
+
value.gsub(/[^\w\-]/, "")[0...255]
end
def self.to_http(value)
"HTTP_#{value.tr('-', '_').upcase}"