MCPcopy Index your code
hub / github.com/AI45Lab/Code / sanitize_output

Method sanitize_output

core/src/security/default.rs:253–259  ·  view source on GitHub ↗
(&self, text: &str)

Source from the content-addressed store, hash-verified

251 }
252
253 fn sanitize_output(&self, text: &str) -> String {
254 if !self.config.enable_output_sanitization {
255 return text.to_string();
256 }
257
258 self.sanitize_text(text)
259 }
260
261 fn wipe(&self) {
262 let mut tainted = self.tainted_data.write().unwrap();

Callers 5

test_sanitize_outputFunction · 0.45
test_custom_patternsFunction · 0.45
complete_tool_callMethod · 0.45
sanitize_final_textMethod · 0.45

Calls 1

sanitize_textMethod · 0.80

Tested by 2

test_sanitize_outputFunction · 0.36
test_custom_patternsFunction · 0.36