Revision 2031
Added by Luisehahne almost 12 years ago
- /search/search.php:: trim() parameter (Tks to evaki)
- /search/search_mod.php:: check for undefined users index
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 11 | 11 | ! = Update/Change | 
| 12 | 12 | =============================================================================== | 
| 13 | 13 |  | 
| 14 | 15 Dec-2013 Build 2031 Dietmar Woellbrink (Luisehahne) | |
| 15 | # /search/search.php:: trim() parameter (Tks to evaki) | |
| 16 | # /search/search_mod.php:: check for undefined users index | |
| 14 | 17 | 14 Dec-2013 Build 2030 Dietmar Woellbrink (Luisehahne) | 
| 15 | 18 | ! /install/index.php add query magic_quotes_gpc (has to be disables) | 
| 16 | 19 | ! /install/save.php set values for home_folders and page_languages to default false | 
| branches/2.8.x/wb/admin/interface/version.php | ||
|---|---|---|
| 51 | 51 |  | 
| 52 | 52 | // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) | 
| 53 | 53 | if(!defined('VERSION')) define('VERSION', '2.8.3');
 | 
| 54 | if(!defined('REVISION')) define('REVISION', '2030');
 | |
| 54 | if(!defined('REVISION')) define('REVISION', '2031');
 | |
| 55 | 55 | if(!defined('SP')) define('SP', '');
 | 
| branches/2.8.x/wb/search/search.php | ||
|---|---|---|
| 196 | 196 | $string = ''; | 
| 197 | 197 | if(isset($_REQUEST['string'])) {
 | 
| 198 | 198 | 	if($match!='exact') { // $string will be cleaned below
 | 
| 199 | 		$string=str_replace(',', '', $_REQUEST['string']);
 | |
| 199 | 		$string=str_replace(',', '', trim($_REQUEST['string']) );
 | |
| 200 | 200 | 	} else {
 | 
| 201 | 		$string=$_REQUEST['string'];
 | |
| 201 | 		$string=trim($_REQUEST['string']);
 | |
| 202 | 202 | } | 
| 203 | 203 | // redo possible magic quotes | 
| 204 | 204 | $string = $wb->strip_slashes($string); | 
| 205 | 205 |     $string = preg_replace('/\s+/', ' ', $string);
 | 
| 206 | $string = trim($string); | |
| 206 | //    $string = trim($string);
 | |
| 207 | 207 | // remove some bad chars | 
| 208 | 208 | 	$string = str_replace ( array('[[',']]'),'', $string);
 | 
| 209 | 209 | 	$string = preg_replace('/(^|\s+)[|.]+(?=\s+|$)/', '', $string);
 | 
| branches/2.8.x/wb/search/search_modext.php | ||
|---|---|---|
| 45 | 45 | // make username and displayname for "last modified by... on ..."-string | 
| 46 | 46 | function get_page_modified_by($page_modified_by, $users) {
 | 
| 47 | 47 | global $TEXT; | 
| 48 | 	if($page_modified_by>0) {
 | |
| 48 | 	if( ($page_modified_by > 0) && isset($users[$page_modified_by]) ) {
 | |
| 49 | 49 | $username = $users[$page_modified_by]['username']; | 
| 50 | 50 | $displayname = $users[$page_modified_by]['display_name']; | 
| 51 | 51 | 	} else {
 | 
Also available in: Unified diff