[GH-ISSUE #215] 转义问题 #98

Closed
opened 2026-03-03 11:56:03 +03:00 by kerem · 2 comments
Owner

Originally created by @malsony on GitHub (May 6, 2023).
Original GitHub issue: https://github.com/Finb/bark-server/issues/215

大家好!我将信息用Bash发送给服务器的时候是这样的:
https://MYHOST/PATH/[Title]/[Body Text]

curl "https://MYHOST/PATH/$SMS_1_NUMBER/$SMS_1_TEXT"

问题是我的Body Text(即$SMS_1_TEXT)中可能有这个“/”斜杠,不知道我应该怎样改呢?谢谢!

Originally created by @malsony on GitHub (May 6, 2023). Original GitHub issue: https://github.com/Finb/bark-server/issues/215 大家好!我将信息用Bash发送给服务器的时候是这样的: `https://MYHOST/PATH/[Title]/[Body Text]` `curl "https://MYHOST/PATH/$SMS_1_NUMBER/$SMS_1_TEXT"` 问题是我的Body Text(即$SMS_1_TEXT)中可能有这个“/”斜杠,不知道我应该怎样改呢?谢谢!
kerem closed this issue 2026-03-03 11:56:03 +03:00
Author
Owner

@Finb commented on GitHub (May 6, 2023):

SMS_1_TEXT URL编码一下再拼接

malsony @.***>于2023年5月6日 周六15:13写道:

大家好!我将信息用Bash发送给服务器的时候是这样的:
https://MYHOST/PATH/Title/[Body Text]

`curl "https://MYHOST/PATH/$SMS_1_NUMBER/$SMS_1_TEXT"

问题是我的Body Text(即$SMS_1_TEXT)中可能有这个“/”斜杠,不知道我应该怎样改呢?谢谢!


Reply to this email directly, view it on GitHub
https://github.com/Finb/bark-server/issues/215, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUHGWA45BB4GLXAMGENZQLXEX22JANCNFSM6AAAAAAXX5UCAE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:1537075389 --> @Finb commented on GitHub (May 6, 2023): SMS_1_TEXT URL编码一下再拼接 malsony ***@***.***>于2023年5月6日 周六15:13写道: > 大家好!我将信息用Bash发送给服务器的时候是这样的: > https://MYHOST/PATH/Title/[Body Text] > > `curl "https://MYHOST/PATH/$SMS_1_NUMBER/$SMS_1_TEXT" > > 问题是我的Body Text(即$SMS_1_TEXT)中可能有这个“/”斜杠,不知道我应该怎样改呢?谢谢! > > — > Reply to this email directly, view it on GitHub > <https://github.com/Finb/bark-server/issues/215>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABUHGWA45BB4GLXAMGENZQLXEX22JANCNFSM6AAAAAAXX5UCAE> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@malsony commented on GitHub (May 8, 2023):

收到,已解决,谢谢!

<!-- gh-comment-id:1537633964 --> @malsony commented on GitHub (May 8, 2023): 收到,已解决,谢谢!
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/bark-server#98
No description provided.