Skip to content

Commit 56a1db7

Browse files
committed
- Allow charset names containing underscores or spaces
git-svn-id: file:///svn/phpbb/trunk@8214 89ea8834-ac86-4346-8a33-228a782c2dd0
1 parent 04876bd commit 56a1db7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

phpBB/docs/CHANGELOG.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ <h1>Changelog</h1>
9494
<li>[Fix] Quote bbcode fixes. Letting parse quote=&quot;[&quot; and re-allowing whitelisted bbcodes within username portion (Bug #14770)</li>
9595
<li>[Sec] Fix bbcode helpline display for custom bbcodes - this requires style changes for any custom style (Bug #14850)</li>
9696
<li>[Fix] Correctly count announcements when filtering forums by date (Bug #14877)</li>
97+
<li>[Fix] Allow charset names containing underscores or spaces</li>
9798
</ul>
9899

99100
<a name="v30rc6"></a><h3>1.ii. Changes since 3.0.RC6</h3>

phpBB/includes/utf/utf_tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ function utf8_recode($string, $encoding)
768768
}
769769

770770
// If nothing works, check if we have a custom transcoder available
771-
if (!preg_match('#^[a-z0-9\\-]+$#', $encoding))
771+
if (!preg_match('#^[a-z0-9_ \\-]+$#', $encoding))
772772
{
773773
// Make sure the encoding name is alphanumeric, we don't want it to be abused into loading arbitrary files
774774
trigger_error('Unknown encoding: ' . $encoding, E_USER_ERROR);

0 commit comments

Comments
 (0)