Re: [PATCH] xdg-open: fix regression from 13d9b0c where & gets replaced with \\& in URLs
committed, thanks. -- rex Jimmie Elvenmark wrote: > The characters doesn't need to be prefixed as they don't get > passed to sed anymore. Example: xdg-open 'https://www.google.se/?a=b&c=d' > --- > scripts/xdg-open.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in > index 678eae4..9964244 100644 > --- a/scripts/xdg-open.in > +++ b/scripts/xdg-open.in > @@ -195,7 +195,7 @@ search_desktop_file() > ;; > %[fFuU]) > replaced=1 > -arg="$(echo $target | sed 's/[&*\\]/&/g')" > +arg="$target" > shift > set -- "$@" "$arg" > ;; ___ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg
[PATCH] xdg-open: fix regression from 13d9b0c where & gets replaced with \\& in URLs
The characters doesn't need to be prefixed as they don't get passed to sed anymore. Example: xdg-open 'https://www.google.se/?a=b&c=d' --- scripts/xdg-open.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index 678eae4..9964244 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -195,7 +195,7 @@ search_desktop_file() ;; %[fFuU]) replaced=1 -arg="$(echo $target | sed 's/[&*\\]/&/g')" +arg="$target" shift set -- "$@" "$arg" ;; -- 2.3.3 ___ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg