From 4a5091825c409d3fe371c9e67ca2e008ca3da0a4 Mon Sep 17 00:00:00 2001 From: yinjianm Date: Sat, 18 Apr 2026 01:30:24 +0800 Subject: [PATCH] t2 --- app/Protocols/ClashMeta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Protocols/ClashMeta.php b/app/Protocols/ClashMeta.php index b9d93f0..cf7ef2b 100644 --- a/app/Protocols/ClashMeta.php +++ b/app/Protocols/ClashMeta.php @@ -281,7 +281,7 @@ class ClashMeta extends AbstractProtocol return (string) $value; } - return "'" . str_replace("'", "''", (string) $value) . "'"; + return json_encode((string) $value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); } private static function isAssocArray(array $value): bool