diff options
author | mikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425> | 2014-05-14 16:33:20 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-14 16:33:20 +0000 |
commit | 9fe9a934404e8397eb392fd38d31d4e3e93fa916 (patch) | |
tree | aec83be766ae67f358ea8c483d02d6c17f23e8c4 | |
parent | e89888d9307d2084a07013a1e553abadab319810 (diff) | |
parent | 36633f880daebe2d5a3360ebfe57df5bd4a6e53a (diff) | |
download | sanitizer-9fe9a934404e8397eb392fd38d31d4e3e93fa916.tar.gz |
am 36633f88: added possessive quantifier to OFFSITE_URL regex to address issue https://code.google.com/p/owasp-java-html-sanitizer/issues/detail?id=25
* commit '36633f880daebe2d5a3360ebfe57df5bd4a6e53a':
added possessive quantifier to OFFSITE_URL regex to address issue https://code.google.com/p/owasp-java-html-sanitizer/issues/detail?id=25
-rw-r--r-- | src/main/org/owasp/html/examples/EbayPolicyExample.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/org/owasp/html/examples/EbayPolicyExample.java b/src/main/org/owasp/html/examples/EbayPolicyExample.java index d54aee9..7cce692 100644 --- a/src/main/org/owasp/html/examples/EbayPolicyExample.java +++ b/src/main/org/owasp/html/examples/EbayPolicyExample.java @@ -86,7 +86,7 @@ public class EbayPolicyExample { "(?:[\\p{L}\\p{N}\\\\\\.\\#@\\$%\\+&;\\-_~,\\?=/!]+|\\#(\\w)+)"); private static final Pattern OFFSITE_URL = Pattern.compile( "\\s*(?:(?:ht|f)tps?://|mailto:)[\\p{L}\\p{N}]" - + "[\\p{L}\\p{N}\\p{Zs}\\.\\#@\\$%\\+&;:\\-_~,\\?=/!\\(\\)]*\\s*"); + + "[\\p{L}\\p{N}\\p{Zs}\\.\\#@\\$%\\+&;:\\-_~,\\?=/!\\(\\)]*+\\s*"); private static final Pattern NUMBER = Pattern.compile( "[+-]?(?:(?:[0-9]+(?:\\.[0-9]*)?)|\\.[0-9]+)"); |