english/administrator/components/com_aicontactsafe/models/default.php
// function to protect against different security threats
function to protect against different security threats
function to protect against different security threats
function securityCheck($postData) {
		JRequest::checkToken() or jexit( 'Invalid Token' );
		foreach($postData as $key=>$data) {
			if (is_string($data)) {
				$postData[$key] = $this->replace_specialchars($data);
			}
		}
		return $postData;
	}
function securityCheck ( $ postData ) { JRequest :: checkToken ( ) or jexit ( 'Invalid Token' ) ; foreach ( $ postData as $ key => $ data ) { if ( is_string ( $ data ) ) { $ postData [ $ key ] = $ this -> replace_specialchars ( $ data ) ; } } return $ postData ; }
function to protect against different security threats
function to protect against different security threats
// Check for request forgeries // replace special chars