Skip to content

Commit 5bb93c4

Browse files
committed
fix: deny .dbmeta.md direct url access
1 parent 1049849 commit 5bb93c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('VERSION', '3.8.0');
3+
define('VERSION', '3.8.1');
44

55
define('PUBLIC_FOLDER', __DIR__ . '/public');
66

@@ -406,8 +406,8 @@ function downloadBatch(array $urls) {
406406
}
407407

408408
$[if `process.env.METADATA === "true"`]$
409-
// skip if file is .dbmeta.json
410-
if (str_contains($local_path, ".dbmeta.json")) goto skip;
409+
// skip if file is .dbmeta.
410+
if (str_contains($local_path, ".dbmeta.")) goto skip;
411411

412412
// check if password proteced
413413
if (file_exists($local_path . '.dbmeta.json')) {

0 commit comments

Comments
 (0)