[Portland-bugs] [Bug 46002] New: xdg-open replaces "&" with "%U" in URLs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 13 10:27:18 PST 2012


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

             Bug #: 46002
           Summary: xdg-open replaces "&" with "%U" in URLs
    Classification: Unclassified
           Product: Portland
           Version: 1.1.0 rc1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: pk1001100011 at gmail.com


What to do?
xdg-open "http://one.two/three&four"

What happen?
In web browser URL "http://one.two/three%Ufour" is opened.

What should happen?
URL "http://one.two/three&four" should be opened.

Solution?
Someone said what to do here: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=44046
It's enough to replace line 546 with:

argone=`echo $1|sed 's/&/\\\\&/g'`
arguments_exec="`echo $arguments | sed -e 's*%[fFuU]*"'"$argone"'"*g'`"

Then everything works well. :)

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