From 8fc1a9f5a9c6ba1be8ff2ae6f2c693e21183696d Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 17 Sep 2014 22:49:37 +0200 Subject: [PATCH] Make 404 page easier to understand Fixes https://github.com/owncloud/core/issues/11133 --- core/templates/404.php | 7 +++++-- lib/private/files.php | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/templates/404.php b/core/templates/404.php index bf1e03e6bc9..90912844ef9 100644 --- a/core/templates/404.php +++ b/core/templates/404.php @@ -1,4 +1,6 @@ diff --git a/lib/private/files.php b/lib/private/files.php index 06fc2dc9109..a983f6f32f5 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -116,7 +116,6 @@ class OC_Files { } elseif (!\OC\Files\Filesystem::file_exists($filename)) { header("HTTP/1.0 404 Not Found"); $tmpl = new OC_Template('', '404', 'guest'); - $tmpl->assign('file', $name); $tmpl->printPage(); } else { header("HTTP/1.0 403 Forbidden"); -- 2.39.5