From 39e08750a7911abba04aceb05b39f8e4ec7931ea Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 26 Jun 2020 18:01:39 +0200 Subject: [PATCH] Fix content transfer --- index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index e2f1a8d..837c792 100644 --- a/index.php +++ b/index.php @@ -41,9 +41,10 @@ if(is_array($match) && is_callable($match['target'])) { break; case 'profile': - $content = file_get_contents('pages/profile.html', FALSE, NULL, 0, 36); + $content = file_get_contents('pages/profile.html'); $content = str_replace('%UID%', $match['params']['uid'], $content); - echo $content; + header('Content-Type: text/html; charset=utf-8'); + print($content); break; } } else {