Issue #1099378 by pillarsdotnet: Fixed PDOException by truncating HTTP_USER_AGENT data before saving it to the database.