Changeset 495

Show
Ignore:
Timestamp:
04/13/07 14:10:34 (1 year ago)
Author:
mikey
Message:

populate whole $_SERVER stuff into $unsecureHeaders

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/ipo/request/stubWebRequest.php

    r425 r495  
    2525    protected function doConstuct() 
    2626    { 
    27         $this->unsecureParams = array_merge(array_map(array($this, 'stripslashes'), $_GET), array_map(array($this, 'stripslashes'), $_POST)); 
    28         foreach ($_SERVER as $key => $value) { 
    29             if (substr($key, 0, 5) == 'HTTP_' || substr($key, 0, 7) == 'REMOTE_') { 
    30                 $this->unsecureHeaders[$key] = $value; 
    31             } 
    32         } 
     27        $this->unsecureParams  = array_merge(array_map(array($this, 'stripslashes'), $_GET), array_map(array($this, 'stripslashes'), $_POST)); 
     28        $this->unsecureHeaders = $_SERVER; 
    3329        $this->unsecureCookies = $_COOKIE; 
    3430    }