From 26501b0340eb2962527826aa7d1989aadf61069c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 23:31:16 +0100 Subject: [PATCH] Thing 2.0 cut 7a: a url with a space or a control character is refused Co-Authored-By: Claude Opus 5.5 --- crates/thing-core/tests/command.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/thing-core/tests/command.rs b/crates/thing-core/tests/command.rs index d046d3e..0746c9a 100644 --- a/crates/thing-core/tests/command.rs +++ b/crates/thing-core/tests/command.rs @@ -647,6 +647,8 @@ fn an_effect_core_will_not_run_makes_the_result_malformed_and_clears_nothing() { open_external("file:///etc/passwd", command("after")), open_external("https://", command("after")), open_external("https://ok.test/\nx", command("after")), + open_external("https://ok.test/a b", command("after")), + open_external("https://ok.test/\u{7f}", command("after")), open_external("https://ok.test/", CommandRef::Param(param("p"))), open_external("https://ok.test/", command("undeclared")), Effect::OpenSurface(OpenSurfaceEffect { key: "thing:asset_catalog:x.y".into() }),