fix compatibility with php8

This commit is contained in:
xiaomlove
2020-12-29 03:02:34 +08:00
parent 32d47b66c9
commit fe7489ef51
33 changed files with 249 additions and 212 deletions

View File

@@ -4,7 +4,7 @@ require_once("include/bittorrent.php");
if (!preg_match(':^/(\d{1,10})/([\w]{32})/(.+)$:', $_SERVER["PATH_INFO"], $matches))
httperr();
$id = 0 + $matches[1];
$id = $matches[1] ?? 0;
$md5 = $matches[2];
$email = urldecode($matches[3]);
//print($email);