[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktorrent] /: Fix some magnet links not working in webinterface plugin
From:       Joris Guisson <joris.guisson () gmail ! com>
Date:       2014-11-08 11:54:46
Message-ID: E1Xn4bO-00058d-Q2 () scm ! kde ! org
[Download RAW message or body]

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

BUG: 339584
REVIEW: 120808

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

http://commits.kde.org/ktorrent/2af04ef8e6607625458ca557dd26689503f17789

diff --git a/ChangeLog b/ChangeLog
index bd8dbeb..b629b0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ Changes in 4.4:
 - Fix double click on subdirectory not working in fileview (337457)
 - Drop support for importing KDE3 torrents
 - Support x-scheme-handler/magnet mimetype
+- Fix some magnet links not working in webinterface plugin (339584)
 
 Changes in 4.3.2:
 - Backport ipfilter extraction fixes from master branch (315239)
diff --git a/ktorrent/main.cpp b/ktorrent/main.cpp
index 757b2cb..8d89ed1 100644
--- a/ktorrent/main.cpp
+++ b/ktorrent/main.cpp
@@ -150,6 +150,7 @@ int main(int argc, char** argv)
     about.addCredit(ki18n("Alexey Shildyakov "), ki18n("Patch to rename single file \
                torrents to the file inside"), "ashl1future@gmail.com");
     about.addCredit(ki18n("Maarten De Meyer"), ki18n("Fix for bug 305379"), \
                "de.meyer.maarten@gmail.com");
     about.addCredit(ki18n("Rex Dieter"), ki18n("Add support for \
x-scheme-handler/magnet mimetype"), "rdieter@gmail.com"); +    \
about.addCredit(ki18n("Leszek Lesner"), ki18n("Fix for bug 339584"), \
"leszek.lesner@web.de");  
     KCmdLineArgs::init(argc, argv, &about);
     KCmdLineOptions options;
diff --git a/plugins/webinterface/www/common/action.js \
b/plugins/webinterface/www/common/action.js index 84baa1f..0063166 100644
--- a/plugins/webinterface/www/common/action.js
+++ b/plugins/webinterface/www/common/action.js
@@ -24,6 +24,7 @@ function shutdown()
 function load_url()
 {
 	var url = document.getElementById("torrent_url");
-	fetch_xml("/action?load_torrent=" + escape(url.value),action_ok,action_error);
+	var eurl = escape(url.value);
+	fetch_xml("/action?load_torrent=" + escape(eurl),action_ok,action_error);
 	url.value = "";
 }
\ No newline at end of file


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic