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.
This commit is contained in:
parent
8ecb762d77
commit
60ba57142b
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user