Skip to content

Commit

Permalink
fix where installer downloads nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayoola FALOLA committed Jul 7, 2019
1 parent 9d81999 commit b895d06
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pagecarton/core/application/documents/pc_installer.php
Expand Up @@ -561,8 +561,12 @@ function xcopy($source, $dest, $permissions = 0755)
if( $f = fetchLink( $remoteSite . '/pc_installer.php?do_not_highlight_file=1' ) )
{
// var_export( $f );
// exit();
file_put_contents( 'pc_installer.php', $f );
// exit();
if( stripos( $f, '<?php' ) !== false )
{
// fix where installer downloads nonsense
file_put_contents( 'pc_installer.php', $f );
}
// file_put_contents( 'pc_installer.php', );
}
}
Expand Down

0 comments on commit b895d06

Please sign in to comment.