Skip to content

Commit e678341

Browse files
committed
Docs: Verify Macrophage sanitization examples (#58)
1 parent 9de1285 commit e678341

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/systems/immune/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,10 @@ const result = sanitizer.sanitize({
538538
if (result.safe) {
539539
console.log('Clean input:', result.sanitized);
540540
// {
541-
// name: '<script>alert("xss")</script>',
541+
// comment: '<script>alert("xss")</script>',
542542
// email: 'user@example.com',
543-
// query: '\'; DROP TABLE users; --', // Escaped
544-
// path: 'etc/passwd' // Path traversal removed
543+
// query: "'; DROP TABLE users; --", // SQL injection attempts are often escaped or removed depending on the underlying sanitizer.
544+
// path: 'etc/passwd' // Path traversal attempts are typically removed or neutralized.
545545
// }
546546
} else {
547547
console.log('Threats found:', result.threats);

0 commit comments

Comments
 (0)