anchor.diff:  						return canonical;
   					}
   				}
  -				throwException(createObject("component", "org.owasp.esapi.errors.ValidationException").init(variables.ESAPI, arguments.context & ": Invalid file name does not have valid extension ( " & variables.ESAPI.securityConfiguration().getAllowedFileExtensions() & ")", "Invalid file name does not have valid extension ( " & variables.ESAPI.securityConfiguration().getAllowedFileExtensions() & "): context=" & arguments.context & ", input=" & arguments.input, arguments.context));
  +				msgParams = [arguments.context, variables.ESAPI.securityConfiguration().getAllowedFileExtensions(), arguments.input];
  +				throwException(createObject("component", "org.owasp.esapi.errors.ValidationException").init(variables.ESAPI, variables.ESAPI.resourceBundle().messageFormat("Validator.getValidFileName.typeMismatch.userMessage", msgParams), variables.ESAPI.resourceBundle().messageFormat("Validator.getValidFileName.typeMismatch.logMessage", msgParams), arguments.context));
   			}
   		</cfscript>
   
  
positive.code: 					canonical = variables.ESAPI.encoder().canonicalize(arguments.input);
  
  					if(arguments.type == "" || arguments.type.length() == 0) {
  						throw(object=newJava("java.lang.RuntimeException").init("Validation misconfiguration, specified type to validate against was null: context=" & arguments.context & ", type=" & arguments.type & "), input=" & arguments.input));
  					}
  
  					if(isEmptyInput(canonical)) {
  						if(arguments.allowNull)
  							return "";
  						throwException(createObject("component", "org.owasp.esapi.errors.ValidationException").init(ESAPI=variables.ESAPI, userMessage=arguments.context & ": Input required.", logMessage="Input required: context=" & arguments.context & ", type=" & arguments.type & "), input=" & arguments.input, context=arguments.context));
  					}
  
  					if(canonical.length() > arguments.maxLength) {
  						throwException(createObject("component", "org.owasp.esapi.errors.ValidationException").init(ESAPI=variables.ESAPI, userMessage=arguments.context & ": Invalid input. The maximum length of " & arguments.maxLength & " characters was exceeded.", logMessage="Input exceeds maximum allowed length of " & arguments.maxLength & " by " & (canonical.length() - arguments.maxLength) & " characters: context=" & arguments.context & ", type=" & arguments.type & "), input=" & arguments.input, context=arguments.context));
  					}
  
  					p = variables.ESAPI.securityConfiguration().getValidationPattern(arguments.type);
  
negative.code: 						number = arguments.format.parse(javaCast("string", number));
  					}
  					catch(java.text.ParseException e) {
  						msgParams = [arguments.context, arguments.input, arguments.format.toLocalizedPattern()];
  						throwException(createObject("component", "org.owasp.esapi.errors.ValidationException").init(variables.ESAPI, variables.ESAPI.resourceBundle().messageFormat("Validator.getValidNumber.patternMismatch.userMessage", msgParams), variables.ESAPI.resourceBundle().messageFormat("Validator.getValidNumber.patternMismatch.logMessage", msgParams), e, arguments.context));
  					}
  				}
  
  