Skip to content

Commit

Permalink
fix: deny .dbmeta.md direct url access
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschubek committed Nov 4, 2024
1 parent 1049849 commit 5bb93c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('VERSION', '3.8.0');
define('VERSION', '3.8.1');

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

Expand Down Expand Up @@ -406,8 +406,8 @@ function downloadBatch(array $urls) {
}

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

// check if password proteced
if (file_exists($local_path . '.dbmeta.json')) {
Expand Down

0 comments on commit 5bb93c4

Please sign in to comment.