--- input.php.orig	2012-03-30 11:09:54.000000000 -0400
+++ input.php	2012-04-01 14:38:27.000000000 -0400
@@ -276,12 +276,15 @@
 				$_SESSION["rtwi_err"] = "notorrenturl";
 				header( "location: {$config["index"]}?mod=addtorrent" );
 				exit;
-			} elseif ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "http://" ) {
+			} elseif ( ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "http://" ) && ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "magnet:" ) ) {
 				$_SESSION["rtwi_err"] = "notanurl";
 				header( "location: {$config["index"]}?mod=addtorrent" );
 				exit;
 			}
 			$torrent = $_REQUEST["torrenturl"];
+			if ( substr( $torrent, 0, 7 ) == "magnet:" ) {	
+				$xmlrpc->set_type( $torrent, "base64" );
+			}
 		} else {
 			if ( !isset( $_FILES ) || !is_array( $_FILES ) ) {
 				$_SESSION["rtwi_err"] = "notorrentfileuploaded";
