~willismonroe/ubuntu/precise/xdg-utils/typo-fix-996304

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Fix support for multi-word $BROWSER commands.
Author: Per Olofsson <pelle@debian.org>
Bug-Debian: http://bugs.debian.org/612339
--- a/scripts/xdg-open
+++ b/scripts/xdg-open
@@ -442,8 +442,10 @@ open_generic()
         fi
     fi
 
+    OLDIFS="$IFS"
     IFS=":"
     for browser in $BROWSER; do
+        IFS="$OLDIFS"
         if [ x"$browser" != x"" ]; then
 
             browser_with_arg=`printf "$browser" "$1" 2>/dev/null`
@@ -452,7 +454,7 @@ open_generic()
             fi
 
             if [ x"$browser_with_arg" = x"$browser" ]; then
-                "$browser" "$1";
+                $browser "$1";
             else eval '$browser_with_arg'$xdg_redirect_output;
             fi