Skip to content

Commit 2fb8cc4

Browse files
committed
Forbid access to templates via static content server
1 parent 2201432 commit 2fb8cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/static.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function validateStaticFile($path): ?string
9999

100100
$found = false;
101101
foreach (ALLOWED_PATHS as $prefix) {
102-
if (strpos($path, $prefix) === 0) {
102+
if (strpos($path, $prefix) === 0 && !preg_match('~skins/.+/templates/~', $path)) {
103103
$found = true;
104104
break;
105105
}

0 commit comments

Comments
 (0)