Skip to content

Commit

Permalink
EMAIL-205: corrected the byte calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
orionlibs committed Jul 16, 2023
1 parent bd6bfcd commit 262bb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/mail/EmailUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static String encodeUrl(final String input) throws UnsupportedEncodingException
final StringBuilder builder = new StringBuilder();
for (final byte c : input.getBytes(US_ASCII))
{
int b = c;
int b = c & 0xff;
if (SAFE_URL.get(b))
{
builder.append((char) b);
Expand Down

0 comments on commit 262bb84

Please sign in to comment.