Browse Source

fixed accidental change to byte array loop

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3584 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
ebe3a85a3e
  1. 3
      org.springframework.web/src/main/java/org/springframework/web/util/UriUtils.java

3
org.springframework.web/src/main/java/org/springframework/web/util/UriUtils.java

@ -417,7 +417,8 @@ public abstract class UriUtils { @@ -417,7 +417,8 @@ public abstract class UriUtils {
private static byte[] encode(byte[] source, BitSet notEncoded) {
Assert.notNull(source, "'source' must not be null");
ByteArrayOutputStream bos = new ByteArrayOutputStream(source.length * 2);
for (byte b : source) {
for (int i = 0; i < source.length; i++) {
int b = source[i];
if (b < 0) {
b += 256;
}

Loading…
Cancel
Save