diff --git a/theme/1.php b/theme/1.php index fda0f27..cbc08ec 100644 --- a/theme/1.php +++ b/theme/1.php @@ -799,7 +799,7 @@ textarea{ if (isset($file['file'])) { if ($_SERVER['admin'] or (substr($file['name'],0,1) !== '.' and $file['name'] !== getConfig('passfile') ) ) { if (strtolower($file['name']) === 'readme.md') $readme = $file; - if (strtolower($file['name']) === 'index.html') { + if (strtolower($file['name']) === 'index.html' && !$_SERVER['admin']) { $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body']; return output($html,200); }