Commit efa7a1c5 authored by Frank Terbeck's avatar Frank Terbeck

atag: Support and require amded 0.9 and newer

Dealing with base64 encoded string payloads is much more robust then raw
parent 725156c9
......@@ -315,6 +315,11 @@ function ATAG__amded_read_tags() {
tags=( ${(ps:\x03:)amded} )
for ti in ${tags}; do
info=( ${(ps:\x02:)ti} )
if [[ ${info[2]} == *$'\n' ]]; then
# Payload ending in a linefeed signals, that we're looking
# at a base64 encoded string. So let's decode it:
info[2]=$(base64 -d <<< ${info[2]})
return 0
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