aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_bbcodes.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-12-28 22:40:09 +0100
committerAndreas Fischer <bantu@phpbb.com>2010-12-28 22:40:09 +0100
commit6e51e52f0c0f34a5dea8e3e1730de039ed5895e6 (patch)
tree77a05c95078c7f86bfd1c5ae3780788198694e0e /phpBB/includes/acp/acp_bbcodes.php
parent90ccdb4dad6521fe0431ab1e9373c5821156bc46 (diff)
parent6b4d0a254218e8d40151ca1bdff8c439f89502e9 (diff)
downloadforums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.gz
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.bz2
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.tar.xz
forums-6e51e52f0c0f34a5dea8e3e1730de039ed5895e6.zip
Merge branch 'ticket/igorw/9574' into develop
* ticket/igorw/9574: [ticket/9574] Add pcre_utf8_support() function [ticket/9574] Remove conditional PHP<5.2 code [ticket/9574] Drop fallback implementations
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index 9eb594f301..b6bbbdc0cf 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -317,16 +317,7 @@ class acp_bbcodes
$bbcode_tpl = trim($bbcode_tpl);
$utf8 = strpos($bbcode_match, 'INTTEXT') !== false;
- // make sure we have utf8 support
- $utf8_pcre_properties = false;
- if (version_compare(PHP_VERSION, '5.1.0', '>=') || (version_compare(PHP_VERSION, '5.0.0-dev', '<=') && version_compare(PHP_VERSION, '4.4.0', '>=')))
- {
- // While this is the proper range of PHP versions, PHP may not be linked with the bundled PCRE lib and instead with an older version
- if (@preg_match('/\p{L}/u', 'a') !== false)
- {
- $utf8_pcre_properties = true;
- }
- }
+ $utf8_pcre_properties = pcre_utf8_support();
$fp_match = preg_quote($bbcode_match, '!');
$fp_replace = preg_replace('#^\[(.*?)\]#', '[$1:$uid]', $bbcode_match);