fix downloadsubs.php

This commit is contained in:
xiaomlove
2021-03-01 21:40:30 +08:00
parent e5e8ccb24e
commit 2cb04a1a4f
+1 -1
View File
@@ -22,7 +22,7 @@ if (!$arr)
die("Not found\n");
sql_query("UPDATE subs SET hits=hits+1 WHERE id=$filename") or sqlerr(__FILE__, __LINE__);
$file = "$SUBSPATH/$dirname/$filename.$arr[ext]";
$file = ROOT_PATH . "$SUBSPATH/$dirname/$filename.$arr[ext]";
if (!is_file($file))
die("File not found\n");