From 0a8b948f7173f52fe1c261338de802ad04234746 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 5 Jan 2020 18:32:37 +0800 Subject: [PATCH] Update 1.php --- theme/1.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'].'
-