MCPcopy
hub / github.com/pallets/werkzeug / test_safe_join_os_sep

Function test_safe_join_os_sep

tests/test_security.py:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62def test_safe_join_os_sep():
63 import werkzeug.security as sec
64
65 prev_value = sec._os_alt_seps
66 sec._os_alt_seps = "*"
67 assert safe_join("foo", "bar/baz*") is None
68 sec._os_alt_steps = prev_value
69
70
71def test_safe_join_empty_trusted():

Callers

nothing calls this directly

Calls 1

safe_joinFunction · 0.90

Tested by

no test coverage detected