class Police::Labels::UnsafeString

Marks strings that are read from the outside environment with no sanitization.

Public Class Methods

autoflow?() click to toggle source

@see Police::DataFlow::Label#autoflow?

# File lib/police/labels/unsafe_string.rb, line 8
def self.autoflow?
  true
end
return_hook(method_name) click to toggle source

@see Police::DataFlow::Label#return_hook

# File lib/police/labels/unsafe_string.rb, line 18
def self.return_hook(method_name)
  nil
end
yield_args_hook(method_name) click to toggle source

@see Police::DataFlow::Label#yield_args_hook

# File lib/police/labels/unsafe_string.rb, line 23
def self.yield_args_hook(method_name)
  nil
end

Public Instance Methods

accept?(data) click to toggle source

@see Police::DataFlow::Label#accept?

# File lib/police/labels/unsafe_string.rb, line 13
def accept?(data)
  data.kind_of? String
end