Bug 55128

Summary: xdg-open URL that has *
Product: Portland Reporter: Slava <YurinVV>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium CC: YurinVV
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Slava 2012-09-20 08:00:38 UTC
When URL has * then sed -e 's*%[fFuU]*"'"$arg_one"'"*g' will fail.

* in URL must be escaped.

My solution add * for escaping in arg_one.

arg_one ="`echo $arg | sed 's/[&*]/\\\\&/g'`".

Example of that URL is from yandex XMPP notification:
http://clck.yandex.ru/redir/dtype=stred/pid=135/cid=2849/*http://mail.yandex.ru/msg?ids=2360000000601114205&yasoft=online
Comment 1 Rex Dieter 2014-04-26 22:34:18 UTC
I just checked and current code base already includes:

arg_one="`echo "$arg" | sed 's/[&*\\]/\\\\&/g'`"

So I think we're good here now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.