Skip to content

Commit 34eb34f

Browse files
committed
Remove phpinfo() & replace with simple echo for testing
By default phpinfo can expose credentials in environment variables. An unsuspecting developer may accidentally deploy without replacing this index.php first. Using `echo` is a safer option.
1 parent c40cfe8 commit 34eb34f

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

container/root/app/public/index.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,4 @@
77
fwrite( $stdout, 'Using STDOUT pipe for output' );
88
fwrite( $stderr, 'Using STDERR pipe for output' );
99

10-
phpinfo();
11-
12-
// Use the below form to test uploads
13-
?>
14-
15-
<form method="post" action="/" enctype="multipart/form-data">
16-
<p>
17-
Please specify a file, or a set of files:<br>
18-
<input type="file" name="datafile">
19-
</p>
20-
<div>
21-
<input type="submit" value="Send">
22-
</div>
23-
</form>
10+
echo "PHP Version " . PHP_VERSION;

0 commit comments

Comments
 (0)