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

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