Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ticket/security/231] Disable remote avatar functionality & add warning
SECURITY-231
- Loading branch information
Showing
4 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
phpBB/phpbb/db/migration/data/v32x/disable_remote_avatar.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* | ||
* This file is part of the phpBB Forum Software package. | ||
* | ||
* @copyright (c) phpBB Limited <https://www.phpbb.com> | ||
* @license GNU General Public License, version 2 (GPL-2.0) | ||
* | ||
* For full copyright and license information, please see | ||
* the docs/CREDITS.txt file. | ||
* | ||
*/ | ||
|
||
namespace phpbb\db\migration\data\v32x; | ||
|
||
use phpbb\db\migration\migration; | ||
|
||
class disable_remote_avatar extends migration | ||
{ | ||
static public function depends_on() | ||
{ | ||
return array( | ||
'\phpbb\db\migration\data\v32x\v325', | ||
); | ||
} | ||
|
||
public function update_data() | ||
{ | ||
return array( | ||
array('config.update', array('allow_avatar_remote', '0')), | ||
array('config.update', array('allow_avatar_remote_upload', '0')), | ||
); | ||
} | ||
} |