ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/util FileUtils.java
Date Tue, 03 Feb 2004 19:21:05 GMT
peterreilly    2004/02/03 11:21:05

  Modified:    src/main/org/apache/tools/ant/util FileUtils.java
  Log:
  Check if character is in range for special array
  PR: 26642
  Obtained from: Jesse Glick
  
  Revision  Changes    Path
  1.61      +2 -2      ant/src/main/org/apache/tools/ant/util/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/FileUtils.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- FileUtils.java	7 Jan 2004 17:49:37 -0000	1.60
  +++ FileUtils.java	3 Feb 2004 19:21:05 -0000	1.61
  @@ -1306,7 +1306,7 @@
           CharacterIterator iter = new StringCharacterIterator(path);
           for (char c = iter.first(); c != CharacterIterator.DONE;
                c = iter.next()) {
  -            if (isSpecial[c]) {
  +            if (c < 256 && isSpecial[c]) {
                   sb.append('%');
                   sb.append(escapedChar1[c]);
                   sb.append(escapedChar2[c]);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message