[PR #964] [MERGED] Fix: Escape special characters in the target string #3838

Closed
opened 2026-03-13 13:00:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/1Remote/1Remote/pull/964
Author: @Sunlery
Created: 7/28/2025
Status: Merged
Merged: 8/3/2025
Merged by: @VShawn

Base: mainHead: main


📝 Commits (1)

  • 92e92f5 Fix: Escape special characters in the target string

📊 Changes

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

View changed files

📝 scripts/Set-Secret.ps1 (+6 -2)

📄 Description

When the content of Salt.txt contains parentheses, the following PowerShell command fails to execute properly:

powershell.exe ..\scripts\Set-Secret.ps1 -filePath .\Ui\Assert.cs -Pattern "===REPLACE_ME_WITH_SALT===" -localSecretFilePath "C:\1Remote_Secret\Salt.txt" -isRevert


🔄 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/1Remote/1Remote/pull/964 **Author:** [@Sunlery](https://github.com/Sunlery) **Created:** 7/28/2025 **Status:** ✅ Merged **Merged:** 8/3/2025 **Merged by:** [@VShawn](https://github.com/VShawn) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`92e92f5`](https://github.com/1Remote/1Remote/commit/92e92f545f20c0c61e4b19f563f4ed2462f157ec) Fix: Escape special characters in the target string ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/Set-Secret.ps1` (+6 -2) </details> ### 📄 Description When the content of Salt.txt contains parentheses, the following PowerShell command fails to execute properly: `powershell.exe ..\scripts\Set-Secret.ps1 -filePath .\Ui\Assert.cs -Pattern "===REPLACE_ME_WITH_SALT===" -localSecretFilePath "C:\1Remote_Secret\Salt.txt" -isRevert` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 13:00:57 +03: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
starred/1Remote#3838
No description provided.