mirror of
https://github.com/v2board/v2board.git
synced 2025-09-14 10:13:23 +08:00
为vless订阅链接增加转义。
This commit is contained in:
@ -126,4 +126,8 @@ class Helper
|
||||
$encoded = base64_encode($data);
|
||||
return str_replace(['+', '/', '='], ['-', '_', ''], $encoded);
|
||||
}
|
||||
public static function encodeURIComponent($str) {
|
||||
$revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')');
|
||||
return strtr(rawurlencode($str), $revert);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user