Bug 55128 - xdg-open URL that has *
Summary: xdg-open URL that has *
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 08:00 UTC by Slava
Modified: 2014-04-26 22:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.