FS#44324 - [xdg-utils] appending "\\" on every "&"
Attached to Project:
Arch Linux
Opened by Bogomil (smirky) - Tuesday, 24 March 2015, 16:58 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 28 March 2015, 07:58 GMT
Opened by Bogomil (smirky) - Tuesday, 24 March 2015, 16:58 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 28 March 2015, 07:58 GMT
|
Details
Description:
After updating xdg-utils from xdg-utils-1.1.0.git20141009-1-any.pkg.tar.xz to xdg-utils-1.1.0.git20150302-1-any.pkg.tar.xz, every "&" symbol inside links is being replaced with "\\&" on every occurrence. $ xdg-open http(s)://domain.ltd/example&some_variables gets opened like this: http(s)://domain.ltd/example\\&some_variables It adds "\\" in front of every "&" which makes opening links through a lot of programs, i.e. Skype, to fail. Firstly, I thought it was a fluxbox issue, because when I switched to Plasma 5, the bug wasn't present. Then I tried switching to awesome wm and confirmed it's not because of fluxbox (the bug was there too). Downgrading to the previous version of xdg-utils is a temporary workaround. Additional info: * package version(s) xdg-utils 1.1.0.-git20150302-1 Steps to reproduce: 1. Open up a terminal. 2. $ xdg-open "http(s)://domain.ltd/example&some_variables" 3. Browsers opens up with http(s)://domain.ltd/example\\&some_variables |
This task depends upon
http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=686f6f48f6ff939c757881e3fc7a852b61d32c94
It should just be bumped to HEAD.
With an instance of chromium already open and the user agent spoofed in the chromium.desktop file:
Exec=chromium %U --incognito --user-agent='Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36'
With xdg-utils1.1.0.git20141009-1:
$ xdg-open http://www.google.com
START /usr/bin/chromium "http://www.google.com" --incognito --user-agent='Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36'
Created new window in existing browser session.
Works!
With xdg-utils 1.1.0.git20150302-1:
$ xdg-open http://www.google.com
Created new window in existing browser session.
Fails!
Opens the given link in the first tab and opens eight more empty tabs with parts of the user-agent string set in the desktop file.
Same happens with every application when trying to open a link with xdg-utils 1.1.0.git20150302-1 installed.
Downgrading to xdg-utils1.1.0.git20141009-1 solves it.