From 32ee58308d5bb11c322ca6bfc3b56e66364230af Mon Sep 17 00:00:00 2001
From: Chris Smith <chris.eureka@jalakai.co.uk>
Date: Mon, 19 Jan 2009 07:21:24 +0100
Subject: [PATCH] FS#1505, correct an issue where page name search results
 could include links to pages to which the user had no access

darcs-hash:20090119062124-f07c6-5d761a76a50c6c9bcc124fa89feb2fb7b0a9a9b5.gz
---
 inc/fulltext.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/fulltext.php b/inc/fulltext.php
index 74195c534..5399989fa 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -254,7 +254,7 @@ function _ft_pageLookup(&$data){
 
     // check ACL permissions
     foreach(array_keys($pages) as $idx){
-        if(auth_quickaclcheck($pages[$idx]) < AUTH_READ){
+        if(auth_quickaclcheck(trim($pages[$idx])) < AUTH_READ){
             unset($pages[$idx]);
         }
     }
-- 
GitLab