directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r491643 - /directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java
Date Mon, 01 Jan 2007 21:49:23 GMT
Author: elecharny
Date: Mon Jan  1 13:49:22 2007
New Revision: 491643

URL: http://svn.apache.org/viewvc?view=rev&rev=491643
Log:
Fixed a potential problem if byte is > 0x7F : as bytes are signed, 0x80 will always be
< 127.

Modified:
    directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java

Modified: directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java?view=diff&rev=491643&r1=491642&r2=491643
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-core/src/main/java/org/apache/directory/ldapstudio/browser/core/utils/LdifUtils.java
Mon Jan  1 13:49:22 2007
@@ -132,7 +132,7 @@
 
         for ( int i = 0; i < b.length; i++ )
         {
-            if ( b[i] == '\n' || b[i] == '\r' || b[i] == '\u0000' || b[i] > '\u007F' )
+            if ( b[i] == '\n' || b[i] == '\r' || b[i] == '\u0000' || ( ( b[i] & 0x7F
) != 0x7F ) )
             {
                 return true;
             }



Mime
View raw message