Permalink
Browse files

Fix follow in new window with url containing %

The script printed the URL through printf, which interpreted the % as
control character. This led to the script not working and printing
errors like "%C is not valid formatting character". Using echo should be
safe.
  • Loading branch information...
Michal 'vorner' Vaner
Michal 'vorner' Vaner committed Apr 14, 2012
1 parent 29d4d3b commit e5ee033154afaea4db5856e76f2a9ba73fd7526b
Showing with 3 additions and 1 deletion.
  1. +3 −1 examples/data/scripts/follow.sh
@@ -14,7 +14,9 @@ case "$result" in
printf 'set mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO"
;;
XXXNEW_WINDOWXXX*)
- printf "set mode=\nevent KEYCMD_CLEAR\nevent NEW_WINDOW $@\n" > "$UZBL_FIFO"
+ echo "set mode=
+event KEYCMD_CLEAR
+event NEW_WINDOW $@" > "$UZBL_FIFO"
;;
XXXRETURNED_URIXXX*)
uriaction=$1

0 comments on commit e5ee033

Please sign in to comment.