Skip to content

Commit

Permalink
Correct access check for admin folder
Browse files Browse the repository at this point in the history
Fixes #24089
Fixes #23476
  • Loading branch information
atrol authored and vboctor committed Mar 13, 2018
1 parent ff9fb8a commit 9debbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login_password_page.php
Expand Up @@ -170,7 +170,7 @@
}

$t_upgrade_required = false;
if( config_get_global( 'admin_checks' ) == ON && file_exists( dirname( __FILE__ ) .'/admin' ) ) {
if( config_get_global( 'admin_checks' ) == ON && file_exists( dirname( __FILE__ ) .'/admin/.' ) ) {
# since admin directory and db_upgrade lists are available check for missing db upgrades
# if db version is 0, we do not have a valid database.
$t_db_version = config_get( 'database_version', 0 );
Expand Down

0 comments on commit 9debbfb

Please sign in to comment.