Esempio n. 1
0
 private function _filterPost($key)
 {
     $post = $this->_post;
     if (Dase_Util::getVersion() >= 520) {
         return trim(filter_input(INPUT_POST, $key, FILTER_SANITIZE_STRING));
     } else {
         if (isset($post[$key])) {
             if (is_array($post[$key])) {
                 $clean_array = array();
                 foreach ($post[$key] as $inp) {
                     $inp = strip_tags($inp);
                     $clean_array[] = $inp;
                 }
                 return $clean_array;
             } else {
                 return strip_tags($post[$key]);
             }
         }
     }
     return false;
 }