From 4d1fee4c4c89f14eed23d36bf3c3bdc5245ed968 Mon Sep 17 00:00:00 2001
From: B_S666 <i@frostbitten.de>
Date: Tue, 1 Aug 2017 21:07:31 +0200
Subject: [PATCH] prevent hidden pages to be shown in trace

---
 inc/common.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/common.php b/inc/common.php
index 9a1da7907..c27640d8f 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -382,9 +382,9 @@ function breadcrumbs() {
 
     //first visit?
     $crumbs = isset($_SESSION[DOKU_COOKIE]['bc']) ? $_SESSION[DOKU_COOKIE]['bc'] : array();
-    //we only save on show and existing wiki documents
+    //we only save on show and existing visible wiki documents
     $file = wikiFN($ID);
-    if($ACT != 'show' || !file_exists($file)) {
+    if($ACT != 'show' || isHiddenPage($ID) || !file_exists($file)) {
         $_SESSION[DOKU_COOKIE]['bc'] = $crumbs;
         return $crumbs;
     }
-- 
GitLab