mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:31:00 +00:00
fix: harden docs i18n prompt echoes
This commit is contained in:
@@ -64,6 +64,10 @@ const POISON_TEXT_PATTERNS = [
|
||||
pattern: /\b[A-Za-z_\u3400-\u9fff][\w\u3400-\u9fff-]*_input=\{/u,
|
||||
message: "Leaked tool-call input payload.",
|
||||
},
|
||||
{
|
||||
pattern: /<\/?openclaw_docs_i18n_input>/iu,
|
||||
message: "Leaked docs i18n prompt wrapper.",
|
||||
},
|
||||
{
|
||||
pattern: /\/home\/runner\/work\//u,
|
||||
message: "Leaked GitHub Actions workspace path.",
|
||||
|
||||
Reference in New Issue
Block a user