# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: W:\www\dev\administrator\components\com_comprofiler # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: plugin.class.php --- administrator/components/com_comprofiler/plugin.class.php +++ administrator/components/com_comprofiler/plugin.class.php @@ -2463,10 +2463,9 @@ 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 ); } }