diff --git a/Source/pages/repo_import_latest.php b/Source/pages/repo_import_latest.php index db4ba43..3255b22 100644 --- a/Source/pages/repo_import_latest.php +++ b/Source/pages/repo_import_latest.php @@ -15,6 +15,11 @@ $t_valid = false; $t_remote = true; +# Always allow the same machine to import +if ( '127.0.0.1' == $t_address || '127.0.1.1' == $t_address ) { + $t_valid = true; +} + # Allow a logged-in user to import if ( !$t_valid && auth_is_user_authenticated() ) { form_security_validate( 'plugin_Source_repo_import_latest' ); @@ -27,11 +32,6 @@ helper_begin_long_process(); -# Always allow the same machine to import -if ( '127.0.0.1' == $t_address || '127.0.1.1' == $t_address ) { - $t_valid = true; -} - # Check for allowed remote IP/URL addresses if ( !$t_valid && ON == plugin_config_get( 'remote_import' ) ) { $t_import_urls = unserialize( plugin_config_get( 'import_urls' ) );