[Portland-bugs] [Bug 55128] New: xdg-open URL that has *

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 20 01:00:38 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55128

             Bug #: 55128
           Summary: xdg-open URL that has *
    Classification: Unclassified
           Product: Portland
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: YurinVV at ya.ru


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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list