- if (!engine)
- throw BindingException("Encoding message using POST requires a TemplateEngine instance.");
-
- log.debug("validating input");
+ if (!engine || !destination)
+ throw BindingException("Encoding message using POST requires a TemplateEngine instance and a destination.");
+ HTTPResponse::sanitizeURL(destination);