Development

Changeset 10858

You must first sign up to be able to contribute.

Changeset 10858

Show
Ignore:
Timestamp:
08/13/08 17:37:49 (11 months ago)
Author:
hartym
Message:

[1.2] ported r10019 for 1.2 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/task/generator/sfGenerateAppTask.class.php

    r10054 r10858  
    139139      'IP_CHECK'    => '// this check prevents access to debug front conrollers that are deployed by accident to production servers.'.PHP_EOL. 
    140140                       '// feel free to remove this, extend it or make something more sophisticated.'.PHP_EOL. 
    141                        'if (!in_array(@$_SERVER[\'REMOTE_ADDR\'], array(\'127.0.0.1\')))'.PHP_EOL. 
     141                       'if (!in_array(@$_SERVER[\'REMOTE_ADDR\'], array(\'127.0.0.1\', \'::1\')))'.PHP_EOL. 
    142142                       '{'.PHP_EOL. 
    143143                       '  die(\'You are not allowed to access this file. Check \'.basename(__FILE__).\' for more information.\');'.PHP_EOL. 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.