Changeset 1778
- Timestamp:
- 08/06/08 17:35:36 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework/trunk/src/main/php/net/stubbles/ipo/request/stubWebRequest.php
r1763 r1778 27 27 protected function doConstuct() 28 28 { 29 $this->unsecureParams = array_merge(array_map(array( $this, 'stripSlashes'), $_GET), array_map(array($this, 'stripSlashes'), $_POST));29 $this->unsecureParams = array_merge(array_map(array(__CLASS__, 'stripSlashes'), $_GET), array_map(array(__CLASS__, 'stripSlashes'), $_POST)); 30 30 $this->unsecureHeaders = $_SERVER; 31 31 $this->unsecureCookies = $_COOKIE; … … 39 39 * @return string|array stripslashed' value 40 40 */ 41 p rivatefunction stripSlashes($value)41 public static function stripSlashes($value) 42 42 { 43 43 if (is_array($value) === false) { … … 47 47 $tmp = array(); 48 48 foreach ($value as $id => $content) { 49 $tmp[$id] = $this->stripslashes($content);49 $tmp[$id] = self::stripslashes($content); 50 50 } 51 51 framework/trunk/src/test/php/net/stubbles/websites/rasmus/testpage.php
r1763 r1778 1 <html><head><title><? =$this->request->getMethod();?></title></head><body><?php echo $this->session->getValue('foo'); $this->response->setStatusCode(304);?></body></html>1 <html><head><title><?php echo $this->request->getMethod();?></title></head><body><?php echo $this->session->getValue('foo'); $this->response->setStatusCode(304);?></body></html>
