[
https://issues.apache.org/jira/browse/OFBIZ-12249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17357899#comment-17357899 ]
Jacques Le Roux commented on OFBIZ-12249:
-----------------------------------------
Hi Wang,
I suggest this patch [^OFBIZ-12249.patch] It's a bit restrictive and would not work with your example because it uses Commons Validator {{UrlValidator.getInstance().isValid}} wich calls #isValidAuthority() checking that the domain is valid. I believe it's OK. In case where a fake URL would be needed (for test for instance) UtilValidate::isUrl can be used instead.
About XSS prevention, have a look at UtilCodec::checkStringForHtmlStrictNone and UtilCodec::checkStringForHtmlSafe, HTH
--
This message was sent by Atlassian Jira
(v8.3.4#803005)