Project

General

Profile

Bug #1622 ยป 1622.patch

krileon, 08 June 2010 14:48

View differences:

administrator/components/com_comprofiler/plugin.class.php
if ( cbStartOfStringMatch( $searchmode, 'phrase' ) ) {
$eachValues = array( $value );
} else {
global $_CB_framework;
if ( $_CB_framework->outputCharset() == 'UTF-8' ) {
$eachValues = preg_split( '/\p{Z}+/u', $value );
} else {
$eachValues = @preg_split( '/\p{Z}+/u', $value );
if ( preg_last_error() == PREG_INTERNAL_ERROR ) {
$eachValues = preg_split( '/\W+/', $value );
}
}
    (1-1/1)