From 175f37441ef707de88079cb75bf5a00f175692e7 Mon Sep 17 00:00:00 2001 From: vargenau Date: Mon, 15 Jun 2009 12:45:34 +0000 Subject: [PATCH] Let us trim page names (user might have put spaces in watch pages preferences) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6934 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PageList.php b/lib/PageList.php index 0f409eca4..e7003b086 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1015,7 +1015,7 @@ class PageList { $iter = $dbi->titleSearch($search, $sortby, $limit, $exclude); $pages = array(); while ($pagehandle = $iter->next()) { - $pages[] = $pagehandle->getName(); + $pages[] = trim($pagehandle->getName()); } return $pages; /* @@ -1029,7 +1029,7 @@ class PageList { */ } else { //TODO: do the sorting, normally not needed if used for exclude only - return explode(',', $input); + return array_map("trim", explode(',', $input)); } } -- 2.45.0