Commit d760890c authored by Lukas Schauer's avatar Lukas Schauer

changed urlbase64 helper to also use sed for character replacements

parent f06f764f
......@@ -129,7 +129,7 @@ _exiterr() {
# Encode data as url-safe formatted base64
urlbase64() {
# urlbase64: base64 encoded string with '+' replaced with '-' and '/' replaced with '_'
openssl base64 -e | tr -d '\n\r' | sed 's/=*$//g' | tr '+/' '-_'
openssl base64 -e | tr -d '\n\r' | sed -e 's:=*$::g' -e 'y:+/:-_:'
}
# Convert hex string to binary data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment