From 60ba57142b7b04c74dbd943b551e32df98df0101 Mon Sep 17 00:00:00 2001 From: JW-3154 Date: Fri, 7 Aug 2026 21:44:44 +0800 Subject: [PATCH] fix (General.php): VLESS parsing issue (#1017) Replace urlencode with rawurlencode to prevent spaces from being improperly converted to '+' in node names (e.g., 'HKG 01' becoming 'HKG+01'). A tiny one-line change that significantly improves the UX. --- app/Protocols/General.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Protocols/General.php b/app/Protocols/General.php index 458265d..fbc65f7 100644 --- a/app/Protocols/General.php +++ b/app/Protocols/General.php @@ -239,7 +239,7 @@ class General extends AbstractProtocol $user = $uuid . '@' . Helper::wrapIPv6($host) . ':' . $port; $query = http_build_query($config); - $fragment = urlencode($name); + $fragment = rawurlencode($name); $link = sprintf("vless://%s?%s#%s\r\n", $user, $query, $fragment); return $link; }