Skip to content

Commit

Permalink
Use NO_WRAP flag to prevent newlines in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Aug 12, 2013
1 parent 1515757 commit aaee662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/github/mobile/util/AvatarLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private Bitmap decode(final File file) {
}

private String getAvatarFilenameForUrl(String avatarUrl) {
return Base64.encodeToString(avatarUrl.getBytes(), Base64.DEFAULT);
return Base64.encodeToString(avatarUrl.getBytes(), Base64.NO_WRAP);
}

/**
Expand Down

0 comments on commit aaee662

Please sign in to comment.