ips_luajit.cc (snort3-3.1.29.0) | : | ips_luajit.cc (snort3-3.1.30.0) | ||
---|---|---|---|---|
skipping to change at line 99 | skipping to change at line 99 | |||
}; | }; | |||
bool LuaJitModule::begin(const char*, int, SnortConfig*) | bool LuaJitModule::begin(const char*, int, SnortConfig*) | |||
{ | { | |||
args.clear(); | args.clear(); | |||
return true; | return true; | |||
} | } | |||
bool LuaJitModule::set(const char*, Value& v, SnortConfig*) | bool LuaJitModule::set(const char*, Value& v, SnortConfig*) | |||
{ | { | |||
args = v.get_string(); | ||||
// if args not empty, it has to be a quoted string | // if args not empty, it has to be a quoted string | |||
// so remove enclosing quotes | // so remove enclosing quotes | |||
if ( args.size() > 1 ) | args = v.get_unquoted_string(); | |||
{ | ||||
args.erase(0, 1); | ||||
args.erase(args.size()-1); | ||||
} | ||||
return true; | return true; | |||
} | } | |||
//------------------------------------------------------------------------- | //------------------------------------------------------------------------- | |||
// option stuff | // option stuff | |||
//------------------------------------------------------------------------- | //------------------------------------------------------------------------- | |||
class LuaJitOption : public IpsOption | class LuaJitOption : public IpsOption | |||
{ | { | |||
public: | public: | |||
End of changes. 2 change blocks. | ||||
8 lines changed or deleted | 1 lines changed or added |