The code is very simple and direct. Your Magic Quotes must actually be on:
<?php if (!get_magic_quotes_gpc()) { ?>
<?php echo translate("Error: magic_quotes_gpc is OFF, you are at risk of SQL Injection attacks!"); ?>
<?php } ?>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I turned on Magic_quotes_gpc in my php.ini, but it still says it's off.
The code is very simple and direct. Your Magic Quotes must actually be on:
<?php if (!get_magic_quotes_gpc()) { ?>
<?php echo translate("Error: magic_quotes_gpc is OFF, you are at risk of SQL Injection attacks!"); ?>
<?php } ?>
phpBugTrackr was written before php5.0. Please feel free to supply a patch to correctly handle the magic_quotes_gpc issue on more recent php versions.
Well if suppose to work with ALL php versions, that means that get_magic_quote() and else are not used.
With php 5.2.3-dev these functions are deprecated. Even in php 6.0.0-dev this will no more appear in the ini file.