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; } }