Bug 339584 - Web Interface has problems in loading certain magnet links
Summary: Web Interface has problems in loading certain magnet links
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 4.3.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
Depends on:
Reported: 2014-10-01 19:41 UTC by Leszek Lesner
Modified: 2014-11-08 11:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

Patch for action.js (436 bytes, patch)
2014-10-01 19:42 UTC, Leszek Lesner

Note You need to log in before you can comment on or make changes to this bug.
Description Leszek Lesner 2014-10-01 19:41:30 UTC
I was informed by one of our users that ktorrent has problems in the web user interface with opening certain magnet links. 
Example (only for the sake of example): 
This works fine: 

This one doesn't:

Reproducible: Always

Steps to Reproduce:
1. Enable Web Interface
2. Try to load "not working marked link"

Actual Results:  
Produces an error (wrong link ?.)

Expected Results:  
Load magnet link. 

I discovered that double escaping the url.value somehow seems to fix this issue. See attached patch
Comment 1 Leszek Lesner 2014-10-01 19:42:05 UTC
Created attachment 88922 [details]
Patch for action.js
Comment 2 Joris Guisson 2014-11-08 11:54:47 UTC
Git commit 2af04ef8e6607625458ca557dd26689503f17789 by Joris Guisson.
Committed on 08/11/2014 at 11:54.
Pushed by guisson into branch 'master'.

Fix some magnet links not working in webinterface plugin
REVIEW: 120808

M  +1    -0    ChangeLog
M  +1    -0    ktorrent/main.cpp
M  +2    -1    plugins/webinterface/www/common/action.js