Bug 24375

Summary: xdg-open can't handle URIs with #fragment part
Product: Portland Reporter: Dmytro <dimich.dmb>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: quick'n'dirty solution

Description Dmytro 2009-10-07 06:15:23 UTC
Created attachment 30140 [details] [review]
quick'n'dirty solution

Passing URI with <sharp> character (#) to xdg-open causes the error:

$ xdg-open "http://example.com#anchor"
sed: -e expression #1, char 25: unknown option to `s'

because <sharp> character is used as argument delimiter for sed `s' command.
Proposed patch is in attachment, but i'm not sure that it is best solution.
Comment 1 Fathi Boudra 2009-10-12 05:51:42 UTC

*** This bug has been marked as a duplicate of bug 23319 ***

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.