Skip to content

Commit

Permalink
MDL-4218 Disabling the check for admin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Jan 17, 2008
1 parent 4a1cbc6 commit a0f6fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.php
Expand Up @@ -449,7 +449,7 @@
/// If we can open a file then we know that the admin name is correct.

if ($nextstage == ADMIN or $INSTALL['stage'] == ADMIN) {
if (!ini_get('allow_url_fopen')) {
if (!ini_get('allow_url_fopen') || true) { // MDL-4218 fopen URL is not reliable
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
} else if (($fh = @fopen($INSTALL['wwwrootform'].'/'.$INSTALL['admindirname'].'/environment.xml', 'r')) !== false) {
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
Expand Down

0 comments on commit a0f6fa7

Please sign in to comment.