diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-18 22:28:28 -0700 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-10-18 22:28:28 -0700 |
commit | b31cd05328e78f01ec053a8ff60b6db8a92891a1 (patch) | |
tree | ec11fd55c8e0323d76d632fb23d996305cf6580b /src/main.rs | |
parent | 2f2a76aab3f23baaf9a47a72b7660a64e2e156dc (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.rs | 4 |
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") |