MCPcopy
hub / github.com/django/django / SuspiciousFileOperation

Class SuspiciousFileOperation

django/core/exceptions.py:48–51  ·  view source on GitHub ↗

A Suspicious filesystem operation was attempted

Source from the content-addressed store, hash-verified

46
47
48class SuspiciousFileOperation(SuspiciousOperation):
49 """A Suspicious filesystem operation was attempted"""
50
51 pass
52
53
54class DisallowedHost(SuspiciousOperation):

Callers 5

get_valid_filenameFunction · 0.90
safe_joinFunction · 0.90
validate_file_nameFunction · 0.90
get_available_nameMethod · 0.90
generate_filenameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…