Ticket #240: magic_quotes_check.patch

File magic_quotes_check.patch, 0.6 kB (added by VexedPanda, 14 months ago)

*Untested*! This should check for magic quotes, but allow config to continue regardless.

  • config_checker.php

     
    6767        print("part1 = " . $part1 . "<br>"); 
    6868        print("part2 = " . $part2 . "<br>"); 
    6969*/       
     70        if (get_magic_quotes_gpc()) { 
     71                $obj = new stdClass(); 
     72                $obj->strMessage = 'In order to improve performance, please turn off magic quotes in your php.ini.'.  
     73                        'See http://ca3.php.net/manual/en/security.magicquotes.disabling.php for further instructions.'; 
     74                $result[] = $obj; 
     75        } 
    7076         
    7177        if (!file_exists($docrootOnlyPath)) { 
    7278                $obj = new stdClass();