Module: Rodsec::StringPointers

Included in:
Modsec, RuleSet, Transaction
Defined in:
lib/rodsec/string_pointers.rb

Constant Summary collapse

EMPTY_STRING =
String.new.freeze

Instance Method Summary collapse

Instance Method Details

#strptr(str) ⇒ Object



5
6
7
8
# File 'lib/rodsec/string_pointers.rb', line 5

def strptr str
  # nil often causes ModSecurity to segfault
  str || EMPTY_STRING
end