[PR #4183] [MERGED] chore: fix shadowrocketUrl client #5621

Closed
opened 2026-10-31 20:48:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4183
Author: @harryngne
Created: 5/7/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @MHSanaei

Base: main ← Head: mansory-changes


📝 Commits (1)

  • fcfcfac chore: fix shadowrocketUrl client

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 web/assets/js/subscription.js (+3 -2)

📄 Description

What is the pull request?

Fix Shadowrocket subscription URL failing when remark or
subscription URL contains Unicode characters (e.g. Vietnamese,
Chinese, Arabic). btoa() throws an error on non-Latin characters,
causing the Shadowrocket link to break silently.

Which part of the application is affected by the change?

  • Frontend

Type of Changes

  • Bug fix

Screenshots

Before: btoa() throws InvalidCharacterError on Unicode input
After: Unicode characters are safely encoded before base64 conversion


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4183 **Author:** [@harryngne](https://github.com/harryngne) **Created:** 5/7/2026 **Status:** ✅ Merged **Merged:** 5/7/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `mansory-changes` --- ### 📝 Commits (1) - [`fcfcfac`](https://github.com/MHSanaei/3x-ui/commit/fcfcfacd121a9b199279aa555b0bf2c938c38525) chore: fix shadowrocketUrl client ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/subscription.js` (+3 -2) </details> ### 📄 Description ## What is the pull request? Fix Shadowrocket subscription URL failing when remark or subscription URL contains Unicode characters (e.g. Vietnamese, Chinese, Arabic). `btoa()` throws an error on non-Latin characters, causing the Shadowrocket link to break silently. ## Which part of the application is affected by the change? - [x] Frontend ## Type of Changes - [x] Bug fix ## Screenshots Before: `btoa()` throws `InvalidCharacterError` on Unicode input After: Unicode characters are safely encoded before base64 conversion --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:13 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5621
No description provided.