Skip to content

Commit a59c0aa

Browse files
committed
better fix following 8be70f5
1 parent 8be70f5 commit a59c0aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

org/w3c/css/values/CssURL.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ public void set(String s, ApplContext ac, URL base)
8888
String urlname = s.substring(4, s.length() - 1).trim();
8989
this.base = base;
9090

91-
value = urlname;
91+
value = filterURLData(urlname);
9292
full = null;
9393
if (!urlHeading.startsWith("url"))
9494
throw new InvalidParamException("url", s, ac);
9595
// special case for data url...
9696
if (urlname.contains("data:")) {
9797
// no more processing.
98-
value = checkDataURL(urlname);
9998
return;
10099
}
101100
// now add the URL to the list of seen URLs in the context
@@ -107,7 +106,7 @@ public void set(String s, ApplContext ac, URL base)
107106
}
108107
}
109108

110-
private String checkDataURL(String source) {
109+
private String filterURLData(String source) {
111110
StringBuilder sb = new StringBuilder();
112111
// here we just escape < and >, we might do more validation
113112
// like base64 encoding checks, when necessary

0 commit comments

Comments
 (0)