Subversion Repositories DevTools

Rev

Rev 145 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 171
Line 80... Line 80...
80
   var versionNumberRE = /^\d+\.\d+\.\d+$/;
80
   var versionNumberRE = /^\d+\.\d+\.\d+$/;
81
   var re_patch_ver_format = /^\d+\.\d+\.\d+\.p\d+\.[a-zA-Z0-9]+$/;
81
   var re_patch_ver_format = /^\d+\.\d+\.\d+\.p\d+\.[a-zA-Z0-9]+$/;
82
   var urlRE = "^https?://[a-z1-9]";
82
   var urlRE = "^https?://[a-z1-9]";
83
   //character range disallowed
83
   //character range disallowed
84
   var HTMLchr = /[\<\>\'\"]+/i;
84
   var HTMLchr = /[\<\>\'\"]+/i;
85
 
-
 
-
 
85
   var alphanumRE = /^[a-z0-9]+$/i;
86
 
86
 
87
   for (i=0; i<(args.length-2); i+=3) {
87
   for (i=0; i<(args.length-2); i+=3) {
88
      test=args[i+2];
88
      test=args[i+2];
89
      val=MM_findObj(args[i]);
89
      val=MM_findObj(args[i]);
90
 
90
 
Line 217... Line 217...
217
            if (test.indexOf('isURL')!=-1) {
217
            if (test.indexOf('isURL')!=-1) {
218
               REresults = val.match(urlRE);
218
               REresults = val.match(urlRE);
219
               if (REresults == null) errors += '"'+val+'" is not a valid URL.\n';
219
               if (REresults == null) errors += '"'+val+'" is not a valid URL.\n';
220
            }
220
            }
221
 
221
 
-
 
222
            if (test.indexOf('isAlphaNum')!=-1) {
-
 
223
               REresults = val.match(alphanumRE);
-
 
224
               if (REresults == null) errors += '"'+nm+'" must be an alphanumeric value.\n';
-
 
225
            }
-
 
226
 
222
            if (test.indexOf('isChangePassword')!=-1) {
227
            if (test.indexOf('isChangePassword')!=-1) {
223
               pass=MM_findObj('FRpassword');
228
               pass=MM_findObj('FRpassword');
224
               passc=MM_findObj('FRpasswordc');
229
               passc=MM_findObj('FRpasswordc');
225
               if (pass.value!=passc.value) errors+='- Password confirmation does not match.\n';
230
               if (pass.value!=passc.value) errors+='- Password confirmation does not match.\n';
226
            }
231
            }