From 2cb04a1a4fc91f2b633ce1f1f3bfe795067170b6 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 1 Mar 2021 21:40:30 +0800 Subject: [PATCH] fix downloadsubs.php --- public/downloadsubs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/downloadsubs.php b/public/downloadsubs.php index ad1dd448..979a2a8d 100644 --- a/public/downloadsubs.php +++ b/public/downloadsubs.php @@ -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");