[xoops-cvslog 6077] CVS update: xoops2jp/html/modules/legacy/forms

Back to archive index

NobuNobu nobun****@users*****
2006年 12月 30日 (土) 23:42:12 JST


Index: xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php
diff -u xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php:1.1.2.3 xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php:1.1.2.4
--- xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php:1.1.2.3	Tue Nov  7 17:24:51 2006
+++ xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php	Sat Dec 30 23:42:12 2006
@@ -45,12 +45,17 @@
 			$this->mQueries[] = $myts->addSlashes($this->get('query'));
 		}
 		else {
+			$query = $this->get('query');
+			if (defined('XOOPS_USE_MULTIBYTES')) {
+				$query = xoops_trim($query);
+			}
+
 			$separator = '/[\s,]+/';
 			if (defined('_MD_LEGACY_FORMAT_SEARCH_SEPARATOR')) {
 				$separator = _MD_LEGACY_FORMAT_SEARCH_SEPARATOR;
 			}
 		
-			$tmpArr = preg_split($separator, $this->get('query'));
+			$tmpArr = preg_split($separator, $query);
 			foreach ($tmpArr as $tmp) {
 				if (strlen($tmp) >= $this->_mKeywordMin) {
 					$this->mQueries[] = $myts->addSlashes($tmp);


xoops-cvslog メーリングリストの案内
Back to archive index