Skip to content

Commit 2df16f1

Browse files
committed
PLUGINS-6320 fixed possible issue with phpinfo() function
1 parent 802dcae commit 2df16f1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

templates/debug.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@
215215
<iframe width="80%" height="500px" srcdoc="
216216
<?php
217217
ob_start();
218-
phpinfo();
218+
if( function_exists( 'phpinfo' ) ) {
219+
phpinfo();
220+
} else {
221+
echo 'phpinfo() function is not available';
222+
}
219223
$contents = ob_get_contents();
220224
ob_end_clean();
221225
echo esc_attr( $contents );

0 commit comments

Comments
 (0)