Joomler!.net - Decided on Joomla!

Wiki or Wordpress? No it is JContentPlus.

 

Archives

Blog

Demo

Home » Blog » Joomla! 1.0.13JP バグ(検索の文字化け)
Oct
24
2007

Joomla! 1.0.13JP バグ(検索の文字化け)

EMailPrintPDF
0 votes
Written by:Joomler! 9219 hits

クライアントから苦情がっ!Joomla!のデフォルトの検索窓から日本語を7文字以上いれて検索すると文字化けすると言われ、確認すると確かに文字化けしますね。ちょっとJoomla!のファイルを変更してみました。

フロントエンド/components/com_search/search.phpの77~~87行目あたり。

	// limit searchword to 20 characters
	if ( strlen( $searchword ) > 20 ) {
	    $searchword     = substr( $searchword, 0, 19 );
	    $restriction    = 1;
	}

	// searchword must contain a minimum of 3 characters
	if ( $searchword && strlen( $searchword ) < 3 ) {
	    $searchword     = '';
	    $restriction    = 1;
	}
	// limit searchword to 20 characters
	if ( mb_strlen( $searchword ) > 20 ) {
	    $searchword     = mb_substr( $searchword, 0, 19 );
	    $restriction    = 1;
	}

	// searchword must contain a minimum of 3 characters
	if ( $searchword && mb_strlen( $searchword ) < 3 ) {
	    $searchword     = '';
	    $restriction    = 1;
	}

に変更しました。
 

ADD A COMMENT

Subject*
:
Color Swatch




Email Link Page Code Text Align Center Text Align Justify Text Align Left Text Align Right Text Bold Text Quote Text Italic Text List Bullets Text List Numbers Text Strikethrough Text Underline World Link
Sun Unhappy Smile Evilgrin Wink Tongue Lightning Surprised Grin Rain Clouds Cloudy Snow Waii
Name*
:
EMail*
:
Please answer....
Submit Preview

JContentPlus for Joomla!1.5 powered by Joomler!.net

Related Items

joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.