[PATCH] xdg-open: fix regression from 13d9b0c where & gets replaced with \\& in URLs

Rex Dieter rdieter at math.unl.edu
Mon Mar 23 18:39:56 PDT 2015


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"
>                      ;;




More information about the xdg mailing list