Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 11C4E200BE0 for ; Sat, 17 Dec 2016 21:17:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1089B160B0B; Sat, 17 Dec 2016 20:17:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8BD3A160B33 for ; Sat, 17 Dec 2016 21:16:59 +0100 (CET) Received: (qmail 54207 invoked by uid 500); 17 Dec 2016 20:16:58 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 54022 invoked by uid 99); 17 Dec 2016 20:16:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Dec 2016 20:16:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 816AC2C03E6 for ; Sat, 17 Dec 2016 20:16:58 +0000 (UTC) Date: Sat, 17 Dec 2016 20:16:58 +0000 (UTC) From: "jcesarmobile (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-11218) Prompt method should not crash if a string is passed as button value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 17 Dec 2016 20:17:00 -0000 [ https://issues.apache.org/jira/browse/CB-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] jcesarmobile updated CB-11218: ------------------------------ Labels: easyfix iOS triaged (was: easyfix iOS pendingPR triaged) > Prompt method should not crash if a string is passed as button value > -------------------------------------------------------------------- > > Key: CB-11218 > URL: https://issues.apache.org/jira/browse/CB-11218 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Dialogs > Environment: iOS > Reporter: Andrew Zellman > Assignee: Andrew Zellman > Labels: easyfix, iOS, triaged > > The prompt method expects an array as an argument in the command array, but there is no input validation requiring that it be an array. A string makes just as much sense for a single-button dialog, but if the API user sends a string, it crashes. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org