W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2017

[webrtc-pc] Constructor for RTCDTMFToneChangeEvent does not validate format of tone

From: Soares Chen via GitHub <sysbot+gh@w3.org>
Date: Tue, 01 Aug 2017 04:23:44 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-246951497-1501561422-sysbot+gh@w3.org>
soareschen has just created a new issue for https://github.com/w3c/webrtc-pc:

== Constructor for RTCDTMFToneChangeEvent does not validate format of tone ==
Currently it is possible to manually construct `RTCDTMFToneChangeEvent` instances with `tone` having arbitrary characters of any length.

The fix is to add a step in the constructor:

- If `tone` contains any unrecognized characters, or if `tone` has more than one character, throw an `InvalidCharacterError`. 

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1518 using your GitHub account
Received on Tuesday, 1 August 2017 04:23:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:51 UTC