espiceland: branch 2.0 r5082 - /branches/2.0/config/js/features.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Sep 8 10:39:12 CDT 2010
Author: espiceland
Date: Wed Sep 8 10:39:10 2010
New Revision: 5082
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5082
Log:
Disallow any characters except \d+-\d+ in Extensions for Parked Calls on Call Features page. Fixes ASTGUI-139.
Modified:
branches/2.0/config/js/features.js
Modified: branches/2.0/config/js/features.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/features.js?view=diff&rev=5082&r1=5081&r2=5082
==============================================================================
--- branches/2.0/config/js/features.js (original)
+++ branches/2.0/config/js/features.js Wed Sep 8 10:39:10 2010
@@ -90,7 +90,7 @@
edit_funcs['parkpos'] = function(val) {
/* validate special format */
- if (!val.match(/[0-9][0-9]*\-[0-9][0-9]*/)) {
+ if (!val.match(/^[0-9][0-9]*\-[0-9][0-9]*$/)) {
throw TypeError('Invalid: Please use "<num>-<num>" format');
}
More information about the asterisk-gui-commits
mailing list