Skip to content

Commit 91cfac1

Browse files
authored
Merge pull request #24 from CleanTalk/master
Release 2.8.0
2 parents 2077e7f + 9bb0b96 commit 91cfac1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ php-uni
22
=======
33
[![Build Status](https://travis-ci.org/CleanTalk/php-uni.svg)](https://travis-ci.org/CleanTalk/php-uni)
44

5-
# Version 2.7.1
5+
# Version 2.7.2
66

77
Module for any CMS
88
## Installation

cleantalk/inc/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Cleantalk\Variables\Server;
55

66
define('APBCT_PLUGIN', 'uni');
7-
define('APBCT_VERSION', '2.7.2');
7+
define('APBCT_VERSION', '2.8.0');
88
define('APBCT_AGENT', APBCT_PLUGIN . '-' . str_replace( '.', '', APBCT_VERSION ) );
99
define('APBCT_USER_AGENT', 'Cleantalk-Antispam-Universal-Plugin/' . APBCT_VERSION);
1010
define('APBCT_INITIAL_INCLUDE_PATH', get_include_path());

cleantalk/lib/Cleantalk/Common/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public static function fromUTF8($obj, $data_codepage = null)
817817

818818
//String
819819
}else{
820-
if(preg_match('u', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null)
820+
if(preg_match('/u/', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null)
821821
$obj = mb_convert_encoding($obj, $data_codepage, 'UTF-8');
822822
}
823823
return $obj;

0 commit comments

Comments
 (0)