MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / __init__

Method __init__

thirdparty/bottle/bottle.py:308–323  ·  view source on GitHub ↗
(self, strict=False)

Source from the content-addressed store, hash-verified

306 _MAX_GROUPS_PER_PATTERN = 99
307
308 def __init__(self, strict=False):
309 self.rules = [] # All rules in order
310 self._groups = {} # index of regexes to find them in dyna_routes
311 self.builder = {} # Data structure for the url builder
312 self.static = {} # Search structure for static routes
313 self.dyna_routes = {}
314 self.dyna_regexes = {} # Search structure for dynamic routes
315 #: If true, static routes are no longer checked first.
316 self.strict_order = strict
317 self.filters = {
318 're': lambda conf: (_re_flatten(conf or self.default_pattern),
319 None, None),
320 'int': lambda conf: (r'-?\d+', int, lambda x: str(int(x))),
321 'float': lambda conf: (r'-?[\d.]+', float, lambda x: str(float(x))),
322 'path': lambda conf: (r'.+?', None, None)
323 }
324
325 def add_filter(self, name, func):
326 """ Add a filter. The provided function is called with the configuration

Callers

nothing calls this directly

Calls 1

_re_flattenFunction · 0.85

Tested by

no test coverage detected