Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ php-uni
=======
[![Build Status](https://travis-ci.org/CleanTalk/php-uni.svg)](https://travis-ci.org/CleanTalk/php-uni)

# Version 2.7.1
# Version 2.7.2

Module for any CMS
## Installation
Expand Down
2 changes: 1 addition & 1 deletion cleantalk/inc/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Cleantalk\Variables\Server;

define('APBCT_PLUGIN', 'uni');
define('APBCT_VERSION', '2.7.2');
define('APBCT_VERSION', '2.8.0');
define('APBCT_AGENT', APBCT_PLUGIN . '-' . str_replace( '.', '', APBCT_VERSION ) );
define('APBCT_USER_AGENT', 'Cleantalk-Antispam-Universal-Plugin/' . APBCT_VERSION);
define('APBCT_INITIAL_INCLUDE_PATH', get_include_path());
Expand Down
2 changes: 1 addition & 1 deletion cleantalk/lib/Cleantalk/Common/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ public static function fromUTF8($obj, $data_codepage = null)

//String
}else{
if(preg_match('u', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null)
if(preg_match('/u/', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null)
$obj = mb_convert_encoding($obj, $data_codepage, 'UTF-8');
}
return $obj;
Expand Down