pari: branch aadk r757 - /branches/aadk/config/backup.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Apr 25 13:02:25 MST 2007


Author: pari
Date: Wed Apr 25 15:02:24 2007
New Revision: 757

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=757
Log:
Check for invalid characters in backup filename

Modified:
    branches/aadk/config/backup.html

Modified: branches/aadk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/backup.html?view=diff&rev=757&r1=756&r2=757
==============================================================================
--- branches/aadk/config/backup.html (original)
+++ branches/aadk/config/backup.html Wed Apr 25 15:02:24 2007
@@ -166,6 +166,13 @@
 		_nn.focus();
 		return true;
 	}
+
+	if (_nn.value.search('^[a-zA-Z_0-9]*$') == -1){
+		alert("File Name may contain only Alphabets and Numbers");
+		_nn.focus();
+		return true;
+	}
+
 	var months = ["jan", "feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];
 	var today=new Date()
 	var year = today.getFullYear();



More information about the asterisk-gui-commits mailing list