lib/roda/plugins/typecast_params.rb
# Raise an Error if the value is a string containing a null byte.
Raise an Error if the value is a string containing a null byte.
Raise an Error if the value is a string containing a null byte .
def check_null_byte(v)
          if v.is_a?(String) && v.index("\0")
            handle_error(nil, :null_byte, "string parameter contains null byte", true)
          end
        end
def check_null_byte ( v ) if v . is_a? ( String ) && v . index ( "\0" ) handle_error ( nil , :null_byte , "string parameter contains null byte" , true ) end end
Raise an Error if the value is a string containing a null byte.
Raise an Error if the value is a string containing a null byte .
v