]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
Revert "strip leading null-bytes from urlbase64" (see #282)
authorLukas Schauer <lukas@schauer.so>
Wed, 21 Sep 2016 11:20:51 +0000 (13:20 +0200)
committerLukas Schauer <lukas@schauer.so>
Wed, 21 Sep 2016 11:20:51 +0000 (13:20 +0200)
This reverts commit 319852dc8cf167d8baeb0848b4998e86a02aa2d0.

dehydrated

index 4d34b93c1f7f22bdfe869bd8191dad3865367e35..63e3fc3eb6d870caef555420ec603d05e54f0c9c 100755 (executable)
@@ -289,7 +289,7 @@ clean_json() {
 # Encode data as url-safe formatted base64
 urlbase64() {
   # urlbase64: base64 encoded string with '+' replaced with '-' and '/' replaced with '_'
-  _sed 's/^\x0+//g' | openssl base64 -e | tr -d '\n\r' | _sed -e 's:=*$::g' -e 'y:+/:-_:'
+  openssl base64 -e | tr -d '\n\r' | _sed -e 's:=*$::g' -e 'y:+/:-_:'
 }
 
 # Convert hex string to binary data