Fix bug 1856 : CSRF issue that allow to change admin password
git-svn-id: http://piwigo.org/svn/trunk@6897 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
0dc214e93e
commit
5421126743
3 changed files with 12 additions and 1 deletions
|
|
@ -25,8 +25,12 @@ if( !defined("PHPWG_ROOT_PATH") ) die ("Hacking attempt!");
|
|||
|
||||
$edit_user = build_user( $_GET['user_id'], false );
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'profile.php');
|
||||
if (!empty($_POST))
|
||||
{
|
||||
check_pwg_token();
|
||||
}
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'profile.php');
|
||||
|
||||
$errors = array();
|
||||
if ( !is_adviser() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue