diff --git a/theme/1.php b/theme/1.php index 2e54d53..145c671 100644 --- a/theme/1.php +++ b/theme/1.php @@ -761,7 +761,7 @@ textarea{ '; } elseif (in_array($ext, $exts['txt'])) { - $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])); + $txtstr = htmlspecialchars(curl_request($files['@microsoft.graph.downloadUrl'])['body']); ?>
@@ -775,7 +775,7 @@ textarea{ - +
'; } else { @@ -839,7 +839,7 @@ textarea{ 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') { - $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl']); + $html = curl_request(fetch_files(spurlencode(path_format($path . '/' .$file['name']),'/'))['@microsoft.graph.downloadUrl'])['body']; return output($html,200); } $filenum++; ?> @@ -963,7 +963,7 @@ textarea{ '.$readme['name'].'
-