Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To Solve this issue, follow these steps:
brew install php
```

3. Head to setting page of this Alfred workflow, double-click on encode / decode block, and change `php` to `/usr/local/bin/php`.
3. Head to setting page of this Alfred workflow, double-click on encode / decode block, and change `php` to `/usr/local/bin/php`, or `/opt/homebrew/bin/php`(if install php by Homebrew).

## Updating
Run the [Alleyoop Workflow](http://www.alfredforum.com/topic/1582-alleyoop-update-alfred-workflows/) using the keyword `oop`. If you're not comfortable with Alleyoop, **star & watch this repo** to keep up to date on new versions and additional workflows.
Expand Down
2 changes: 1 addition & 1 deletion current-version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1.8,
"version": 1.9,
"download_url": "https://raw.github.com/willfarrell/alfred-encode-decode-workflow/master/encode-decode.alfredworkflow",
"description": "Encode/Decode Strings"
}
Binary file modified encode-decode.alfredworkflow
Binary file not shown.
2 changes: 1 addition & 1 deletion src/encode.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function prepare_output($items) {
$encodes = array();

// url
$url_encode = urlencode($query);
$url_encode = urlencode(stripslashes($query));
if ($url_encode != $query) $encodes["URL Encoded"] = $url_encode;

// HTML
Expand Down
2 changes: 1 addition & 1 deletion src/update.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": 1.8,
"version": 1.9,
"remote_json": "https://raw.github.com/willfarrell/alfred-encode-decode-workflow/master/current-version.json"
}
4 changes: 3 additions & 1 deletion src/workflows.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ public function toxml( $a=null, $format='array' ) {
$c->addAttribute( 'valid', $b[$key] );
endif;
elseif ( $key == 'autocomplete' ):
$c->addAttribute( 'autocomplete', $b[$key] );
if ($b[$key]):
$c->addAttribute( 'autocomplete', $b[$key] );
endif;
elseif ( $key == 'icon' ):
if ( substr( $b[$key], 0, 9 ) == 'fileicon:' ):
$val = substr( $b[$key], 9 );
Expand Down