Skip to content

Commit ba9a101

Browse files
committed
a data: URL never rewrite
1 parent 1a49ce8 commit ba9a101

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/inet/lib/less/CssFormatter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ private static class SharedState {
120120

121121
private Map<String, String> options;
122122

123+
/** 0 - "off", 1 - "local", 2 - "all" */
123124
private int rewriteUrl;
124125

125126
private CssOutput currentOutput;
@@ -354,7 +355,7 @@ boolean isRewriteUrl( String url ) {
354355
case 1:
355356
return url.startsWith( "." );
356357
case 2:
357-
return true;
358+
return !url.startsWith( "data:" ); // data: URL never rewrite
358359
}
359360
}
360361

0 commit comments

Comments
 (0)