1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 23:55:26 +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 = '';
}

View File

@ -445,7 +445,7 @@ class bbcode_firstpass extends bbcode
$code = preg_replace('#(?:[\n\r\s\t]|&nbsp;)*</span>$#u', '</span>', $code);
// remove newline at the end
if (!empty($code) && $code{strlen($code)-1} == "\n")
if (!empty($code) && $code[strlen($code) - 1] == "\n")
{
$code = substr($code, 0, -1);
}