aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-18 22:28:28 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-18 22:28:28 -0700
commitb31cd05328e78f01ec053a8ff60b6db8a92891a1 (patch)
treeec11fd55c8e0323d76d632fb23d996305cf6580b /src/main.rs
parent2f2a76aab3f23baaf9a47a72b7660a64e2e156dc (diff)
lots of tiny tweaks
escape more stuff avoid possible breakage if we dont have the fav of a retweet
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0526c06..e53e6b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -286,6 +286,7 @@ fn url_encode(s: &str) -> String {
.replace("\\esc", "%1b")
.replace("!", "%21")
.replace("#", "%23")
+ .replace("$", "%24")
.replace("&", "%26")
.replace("'", "%27")
.replace("(", "%28")
@@ -297,8 +298,9 @@ fn url_encode(s: &str) -> String {
.replace("/", "%2f")
.replace(":", "%3a")
.replace(";", "%3b")
- .replace(">", "%3e")
.replace("<", "%3c")
+ .replace("=", "%3d")
+ .replace(">", "%3e")
.replace("?", "%3f")
.replace("@", "%40")
.replace("[", "%5b")