1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02:00
- should have fixed all uses of curly braces


git-svn-id: file:///svn/phpbb/trunk@6813 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-12-26 20:49:20 +00:00
parent 1d8e391d19
commit 677dc5d2e1
2 changed files with 4 additions and 4 deletions

View File

@@ -1406,13 +1406,13 @@ function avatar_upload($data, &$error)
$destination = $config['avatar_path'];
if ($destination{(sizeof($destination)-1)} == '/' || $destination{(sizeof($destination)-1)} == '\\')
if ($destination[sizeof($destination) - 1] == '/' || $destination[sizeof($destination) - 1] == '\\')
{
$destination = substr($destination, 0, sizeof($destination)-2);
$destination = substr($destination, 0, -1);
}
$destination = str_replace(array('../', '..\\', './', '.\\'), '', $destination);
if ($destination && ($destination[0] == '/' || $destination[0] == "\\"))
if ($destination && ($destination[0] == '/' || $destination[0] == '\\'))
{
$destination = '';
}