mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
Add that realpath thing to unlinking avatars
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3236 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f3242fbc42
commit
0b0d08598a
1 changed files with 2 additions and 2 deletions
|
@ -406,7 +406,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
|||
{
|
||||
if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])) )
|
||||
{
|
||||
@unlink('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']);
|
||||
@unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']));
|
||||
}
|
||||
$avatar_sql = user_avatar_url($mode, $error, $error_msg, $user_avatar_remoteurl);
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
|||
{
|
||||
if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])) )
|
||||
{
|
||||
@unlink('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']);
|
||||
@unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar']));
|
||||
}
|
||||
$avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue