Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2030)
+++ branches/2.8.x/CHANGELOG	(revision 2031)
@@ -11,6 +11,9 @@
 ! = Update/Change
 ===============================================================================
 
+15 Dec-2013 Build 2031 Dietmar Woellbrink (Luisehahne)
+# /search/search.php:: trim() parameter (Tks to evaki)
+# /search/search_mod.php:: check for undefined users index
 14 Dec-2013 Build 2030 Dietmar Woellbrink (Luisehahne)
 ! /install/index.php add query magic_quotes_gpc (has to be disables)
 ! /install/save.php  set values for home_folders and page_languages to default false
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2030)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2031)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '2030');
+if(!defined('REVISION')) define('REVISION', '2031');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/search/search.php
===================================================================
--- branches/2.8.x/wb/search/search.php	(revision 2030)
+++ branches/2.8.x/wb/search/search.php	(revision 2031)
@@ -196,14 +196,14 @@
 $string = '';
 if(isset($_REQUEST['string'])) {
 	if($match!='exact') { // $string will be cleaned below
-		$string=str_replace(',', '', $_REQUEST['string']);
+		$string=str_replace(',', '', trim($_REQUEST['string']) );
 	} else {
-		$string=$_REQUEST['string'];
+		$string=trim($_REQUEST['string']);
 	}
     // redo possible magic quotes
     $string = $wb->strip_slashes($string);
     $string = preg_replace('/\s+/', ' ', $string);
-    $string = trim($string);
+//    $string = trim($string);
 	// remove some bad chars
 	$string = str_replace ( array('[[',']]'),'', $string);
 	$string = preg_replace('/(^|\s+)[|.]+(?=\s+|$)/', '', $string);
Index: branches/2.8.x/wb/search/search_modext.php
===================================================================
--- branches/2.8.x/wb/search/search_modext.php	(revision 2030)
+++ branches/2.8.x/wb/search/search_modext.php	(revision 2031)
@@ -45,7 +45,7 @@
 // make username and displayname for "last modified by... on ..."-string
 function get_page_modified_by($page_modified_by, $users) {
 	global $TEXT;
-	if($page_modified_by>0) {
+	if( ($page_modified_by > 0) && isset($users[$page_modified_by]) ) {
 		$username = $users[$page_modified_by]['username'];
 		$displayname = $users[$page_modified_by]['display_name'];
 	} else {
