On Sun, 08 Jan 2012 18:57:48 +0100
Per Olofsson wrote:
> > Apparently, the only two characters to be escaped are & and \ (both
> > for sed and for awk).
>
> '\' is not allowed unescaped in URI's though. But it is probably safer
> to escape it as well.
I agree. Although my example was a bit con
2012-01-06 16:03, Cyril Soldani skrev:
> On Fri, 06 Jan 2012 15:18:13 +0100
> Per Olofsson wrote:
>> Hmm, perhaps it is better to use awk here. How about this:
>>
>> arguments_exec=`echo $arguments | awk -v url="$1" \
>> '{gsub(/%[fFuU]/, url); print}'`
>
> I think the problem stays the same
On Fri, 06 Jan 2012 15:18:13 +0100
Per Olofsson wrote:
> Hmm, perhaps it is better to use awk here. How about this:
>
> arguments_exec=`echo $arguments | awk -v url="$1" \
> '{gsub(/%[fFuU]/, url); print}'`
I think the problem stays the same, as GNU awk also replaces ampersands
by the matc
Hi,
2012-01-06 12:39, Cyril Soldani skrev:
> Investigating a bit, I found the problem to be at line 552 of xdg-open:
>arguments_exec="`echo $arguments | sed -e 's*%[fFuU]*"'"$1"'"*g'`"
> In our case, $arguments contains '%u'. The problem is with the sed
> expression, which uses $1 (our URL) wi
Package: xdg-utils
Version: 1.1.0~rc1+git20111210-4
Severity: normal
Tags: patch
Dear Maintainer,
When trying to open an HTTP(S) URL containing ampersands with xdg-open,
it fails. Rather than passing the given URL to the browser, it replaces
ampersands with '%u' (which becomes %25u, once URL-enco
5 matches
Mail list logo