Ticket #70: magnet.patch
File magnet.patch, 782 bytes (added by , 13 years ago) |
---|
-
input.php
old new 276 276 $_SESSION["rtwi_err"] = "notorrenturl"; 277 277 header( "location: {$config["index"]}?mod=addtorrent" ); 278 278 exit; 279 } elseif ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "http://") {279 } elseif ( ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "http://" ) && ( substr( $_REQUEST["torrenturl"], 0, 7 ) != "magnet:" ) ) { 280 280 $_SESSION["rtwi_err"] = "notanurl"; 281 281 header( "location: {$config["index"]}?mod=addtorrent" ); 282 282 exit;