Example #1
0
 /**
  * Santize all our fields that were submitted
  *
  * @return array
  */
 public function sanitize()
 {
     parent::sanitize();
     foreach ($this->_cleanData as $key => $value) {
         $this->_cleanData[$key] = strip_tags($value);
     }
 }
Example #2
0
 /**
  * Santize all our fields that were submitted
  *
  * @return array
  */
 public function sanitize()
 {
     parent::sanitize();
     // We shouldn't be sanitizing passwords, so reset them
     if (isset($this->_taintedData['password'])) {
         $this->_cleanData['password'] = $this->_taintedData['password'];
     }
     if (isset($this->_taintedData['password2'])) {
         $this->_cleanData['password2'] = $this->_taintedData['password2'];
     }
     // Remove leading @ for twitter
     if (isset($this->_taintedData['twitter'])) {
         $this->_cleanData['twitter'] = preg_replace('/^@/', '', $this->_taintedData['twitter']);
     }
 }
Example #3
0
 /**
  * Santize all our fields that were submitted
  *
  * @return array
  */
 public function sanitize()
 {
     parent::sanitize();
     // We shouldn't be sanitizing passwords, so reset them
     if (isset($this->_taintedData['password'])) {
         $this->_cleanData['password'] = $this->_taintedData['password'];
     }
     if (isset($this->_taintedData['password2'])) {
         $this->_cleanData['password2'] = $this->_taintedData['password2'];
     }
 }