Skip to content

Commit

Permalink
Fixes #5052, Issue #5041 - Usersettings update redirect.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Aug 16, 2023
1 parent 0b6b28b commit 5ff319c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class2.php
Expand Up @@ -1965,7 +1965,7 @@ function include_lan($path, $force = false)
*/
function force_userupdate($currentUser)
{
if (e_PAGE == 'usersettings.php' || (defined('FORCE_USERUPDATE') && (FORCE_USERUPDATE == false)) || strpos(e_SELF, ADMINDIR) == true )
if (defset('e_PAGE') === 'usersettings.php' || defset('e_REQUEST_URI') === e107::url('user/myprofile/edit') || (defined('FORCE_USERUPDATE') && !FORCE_USERUPDATE) || strpos(e_SELF, ADMINDIR))
{
return false;
}
Expand Down

0 comments on commit 5ff319c

Please sign in to comment.