Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
maxUriLengthh -> maxUriLength (fat-fingered that one whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Apr 24, 2011
1 parent 5139afb commit 6c7d9a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/net/nczonline/web/cssembed/CSSURLEmbedder.java
Expand Up @@ -64,7 +64,7 @@ public class CSSURLEmbedder {
private int options = 1;
private String mhtmlRoot = "";
private String outputFilename = "";
private int maxUriLengthh = DEFAULT_MAX_URI_LENGTH; //IE8 only allows dataURIs up to 32KB
private int maxUriLength = DEFAULT_MAX_URI_LENGTH; //IE8 only allows dataURIs up to 32KB
private int maxImageSize;

//--------------------------------------------------------------------------
Expand All @@ -87,15 +87,15 @@ public CSSURLEmbedder(Reader in, int options, boolean verbose) throws IOExceptio
this(in, options, verbose, 0);
}

public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLengthh) throws IOException {
this(in, options, verbose, maxUriLengthh, 0);
public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength) throws IOException {
this(in, options, verbose, maxUriLength, 0);
}

public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLengthh, int maxImageSize) throws IOException {
public CSSURLEmbedder(Reader in, int options, boolean verbose, int maxUriLength, int maxImageSize) throws IOException {
this.code = readCode(in);
this.verbose = verbose;
this.options = options;
this.maxUriLengthh = maxUriLengthh;
this.maxUriLength = maxUriLength;
this.maxImageSize = maxImageSize;
}

Expand Down Expand Up @@ -235,14 +235,14 @@ public void embedImages(Writer out, String root) throws IOException {
if (uriString.startsWith("data:")){


if (maxUriLengthh > 0 && uriString.length() > maxUriLengthh) {
if (maxUriLength > 0 && uriString.length() > maxUriLength) {
if (verbose){
System.err.println("[WARNING] File " + newUrl + " creates a data URI larger than " + maxUriLengthh + " bytes. Skipping.");
System.err.println("[WARNING] File " + newUrl + " creates a data URI larger than " + maxUriLength + " bytes. Skipping.");
}
builder.append(url);
} else if (maxUriLengthh > 0 && uriString.length() > maxUriLengthh){
} else if (maxUriLength > 0 && uriString.length() > maxUriLength){
if (verbose) {
System.err.println("[INFO] File " + newUrl + " creates a data URI longer than " + maxUriLengthh + " characters. Skipping.");
System.err.println("[INFO] File " + newUrl + " creates a data URI longer than " + maxUriLength + " characters. Skipping.");
}
builder.append(url);
} else {
Expand Down

0 comments on commit 6c7d9a7

Please sign in to comment.