Skip to content

Commit

Permalink
Add check for status of magic quotes runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis authored and davidhicks committed Jan 15, 2012
1 parent d48893e commit cb163fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/admin/check/check_php_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
array( false => 'PHP\'s magic quotes feature is <a href="http://www.php.net/manual/en/security.magicquotes.whynot.php">deprecated in PHP 5.3.0</a> and should not be used.' )
);

check_print_test_row(
'magic_quotes_runtime php.ini directive is disabled',
!( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() ),
array( false => 'PHP\'s magic quotes feature is <a href="http://www.php.net/manual/en/security.magicquotes.whynot.php">deprecated in PHP 5.3.0</a> and should not be used.' )
);

check_print_test_row(
'register_globals php.ini directive is disabled',
!ini_get_bool( 'register_globals' ),
Expand Down

0 comments on commit cb163fe

Please sign in to comment.