summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2014-05-14 16:33:19 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-14 16:33:19 +0000
commite89888d9307d2084a07013a1e553abadab319810 (patch)
tree767366a95dd8bb05d0e02c1f07e67d649c91057d
parenta8875d574bb6baa4b373de08fd26e920897e6bc0 (diff)
parentfad0ad7c601b441c699c817a778d1e4ea51fa8f5 (diff)
downloadsanitizer-e89888d9307d2084a07013a1e553abadab319810.tar.gz
am fad0ad7c: add srcset attribute to the list of URL attributes
* commit 'fad0ad7c601b441c699c817a778d1e4ea51fa8f5': add srcset attribute to the list of URL attributes
-rw-r--r--src/main/org/owasp/html/HtmlPolicyBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/org/owasp/html/HtmlPolicyBuilder.java b/src/main/org/owasp/html/HtmlPolicyBuilder.java
index 5bd0448..fc47c64 100644
--- a/src/main/org/owasp/html/HtmlPolicyBuilder.java
+++ b/src/main/org/owasp/html/HtmlPolicyBuilder.java
@@ -443,7 +443,7 @@ public class HtmlPolicyBuilder {
private static final Set<String> URL_ATTRIBUTE_NAMES = ImmutableSet.of(
"action", "archive", "background", "cite", "classid", "codebase", "data",
"dsync", "formaction", "href", "icon", "longdesc", "manifest", "poster",
- "profile", "src", "usemap");
+ "profile", "src", "srcset", "usemap");
/**
* Produces a policy based on the allow and disallow calls previously made.