Web Frameworks

PyCgitb

Python stdlib module — cgitb. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.enable()Neutral
#
Signature
enable(display, logdir, context, format)

Install an exception handler that formats tracebacks as HTML.

.grey()Neutral
#
Signature
grey(text)

grey function.

.html()Neutral
#
Signature
html(einfo, context)

Return a nice HTML document describing a given traceback.

.html_escape()Neutral
#
Signature
html_escape(s, quote)

Replace special characters "&", "<" and ">" to HTML-safe sequences.

.lookup()Neutral
#
Signature
lookup(name, frame, locals)

Find the value for a given name in the given environment.

.reset()Neutral
#
Signature
reset()

Return a string that resets the CGI and browser to a known state.

.scanvars()Neutral
#
Signature
scanvars(reader, frame, locals)

Scan one logical line of Python and look up values of variables used.

.small()Neutral
#
Signature
small(text)

small function.

.strong()Neutral
#
Signature
strong(text)

strong function.

.text()Neutral
#
Signature
text(einfo, context)

Return a plain text document describing a given traceback.

Fully-Qualified Names

FQNField
cgitbfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import cgitb