mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-22 00:05:49 +02:00
some changes for the new version
- it would be nice if anyone able would be testing these changes on their installations and report bugs as soon as possible (also do not hestitate to PM the developers. ;)). - the changelog is ommitted for now - it will get checked in later. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@6772 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -59,6 +59,16 @@ else
|
||||
$new['server_name'] = str_replace('http://', '', $new['server_name']);
|
||||
}
|
||||
|
||||
// Attempt to prevent a mistake with this value.
|
||||
if ($config_name == 'avatar_path')
|
||||
{
|
||||
$new['avatar_path'] = trim($new['avatar_path']);
|
||||
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
|
||||
{
|
||||
$new['avatar_path'] = $default_config['avatar_path'];
|
||||
}
|
||||
}
|
||||
|
||||
if( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
$sql = "UPDATE " . CONFIG_TABLE . " SET
|
||||
|
Reference in New Issue
Block a user