mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
- Allow charset names containing underscores or spaces
git-svn-id: file:///svn/phpbb/trunk@8214 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -768,7 +768,7 @@ function utf8_recode($string, $encoding)
|
||||
}
|
||||
|
||||
// If nothing works, check if we have a custom transcoder available
|
||||
if (!preg_match('#^[a-z0-9\\-]+$#', $encoding))
|
||||
if (!preg_match('#^[a-z0-9_ \\-]+$#', $encoding))
|
||||
{
|
||||
// Make sure the encoding name is alphanumeric, we don't want it to be abused into loading arbitrary files
|
||||
trigger_error('Unknown encoding: ' . $encoding, E_USER_ERROR);
|
||||
|
Reference in New Issue
Block a user