Menu

magic quotes

Help
Tony
2008-03-29
2013-04-16
  • Tony

    Tony - 2008-03-29

    I turned on Magic_quotes_gpc in my php.ini, but it still says it's off.

     
    • Nobody/Anonymous

      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 } ?>

       
      • Bryce Nesbitt

        Bryce Nesbitt - 2008-04-14

        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.

         
    • Nobody/Anonymous

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.