From 0af0b912db20dd640865eb2ee6f76ab3e6ea92cd Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sat, 29 Nov 2025 20:44:16 +0800 Subject: [PATCH] no message --- src/Services/Subscribe/SS.php | 3 +-- src/Services/Subscribe/V2Ray.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Services/Subscribe/SS.php b/src/Services/Subscribe/SS.php index 6aadc5e6d..74fdd59f2 100755 --- a/src/Services/Subscribe/SS.php +++ b/src/Services/Subscribe/SS.php @@ -29,8 +29,7 @@ final class SS extends Base $port = (int) ($node_custom_config['offset_port_user'] ?? 0); - $links .= base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port . '#' . - $node_raw->name . PHP_EOL; + $links .= base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port . '#' . rawurlencode($node_raw->name) . PHP_EOL; } } diff --git a/src/Services/Subscribe/V2Ray.php b/src/Services/Subscribe/V2Ray.php index 11211eb4f..c588cb6f6 100755 --- a/src/Services/Subscribe/V2Ray.php +++ b/src/Services/Subscribe/V2Ray.php @@ -54,8 +54,7 @@ final class V2Ray extends Base $port = (int) ($node_custom_config['offset_port_user'] ?? 0); - $links .= 'ss://' . base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port) . '#' . - $node_raw->name . PHP_EOL; + $links .= 'ss://' . base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port) . '#' . rawurlencode($node_raw->name) . PHP_EOL; } }