pjfanning commented on code in PR #1455:
URL: https://github.com/apache/poi/pull/1455#discussion_r4349605741


##########
poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToHtmlUtils.java:
##########
@@ -27,6 +30,9 @@ Licensed to the Apache Software Foundation (ASF) under one or 
more
 @Beta
 public class WordToHtmlUtils extends AbstractWordUtils
 {
+    private static final Set<String> SAFE_HYPERLINK_SCHEMES = Set.of(
+            "http", "https", "ftp", "mailto", "file", "news", "tel" );

Review Comment:
   I plan to add an enhancement to allow users to define validator and let them 
control what is allowed.
   But this is ok as a first step.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to