Fixed broken data sanitization function in data.php.