|
...
|
...
|
@@ -74,9 +74,9 @@ if (preg_match("/^Mozilla|^Opera|^Links|^Lynx/i", $agent))
|
|
74
|
74
|
$info_hash = stripslashes($_GET["info_hash"]);
|
|
75
|
75
|
else
|
|
76
|
76
|
$info_hash = $_GET["info_hash"];
|
|
77
|
|
- if (strlen(htmlentities($_GET['hash'], ENT_QUOTES, UTF-8)) == 20)
|
|
|
77
|
+ if (strlen($info_hash) == 20)
|
|
78
|
78
|
$info_hash = bin2hex($info_hash);
|
|
79
|
|
- else if (strlen(htmlentities($_GET['hash'], ENT_QUOTES, UTF-8)) == 40)
|
|
|
79
|
+ else if (strlen($info_hash) == 40)
|
|
80
|
80
|
verifyHash($info_hash) or showError("Invalid info hash value.");
|
|
81
|
81
|
else
|
|
82
|
82
|
showError("Invalid info hash value.");
|