Skip to content

Commit 4bfa327

Browse files
committed
1.7
base64 decode update (hide on fail)
1 parent 3a50153 commit 4bfa327

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

current-version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 1.6,
2+
"version": 1.7,
33
"download_url": "https://raw.github.com/willfarrell/alfred-encode-decode-workflow/master/encode-decode.alfredworkflow",
44
"description": "Encode/Decode Strings"
55
}

encode-decode.alfredworkflow

0 Bytes
Binary file not shown.

src/decode.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ function html_decode($str) {
5353

5454
// base64
5555
$base64_decode = base64_decode($query, true);
56-
if (!$base64_decode) { $decodes["base64 Decoded"] = "Failed to decode. Output contains character from outside the base64 alphabet."; }
57-
else if ($base64_decode != $query) { $decodes["base64 Decoded"] = $base64_decode; }
56+
if (!$base64_decode && $base64_decode != $query) { $decodes["base64 Decoded"] = $base64_decode; }
5857

5958
//$dencodes["UTF-8 Decoded"] = utf8_decode($query);
6059

src/update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": 1.3,
2+
"version": 1.7,
33
"remote_json": "https://raw.github.com/willfarrell/alfred-encode-decode-workflow/master/current-version.json"
44
}

0 commit comments

Comments
 (0)