directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1101005 - /directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java
Date Mon, 09 May 2011 13:02:18 GMT
Author: pamarcelot
Date: Mon May  9 13:02:18 2011
New Revision: 1101005

URL: http://svn.apache.org/viewvc?rev=1101005&view=rev
Log:
Escaped schema name value in case it contains "bad" characters.

Modified:
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java?rev=1101005&r1=1101004&r2=1101005&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/model/schemamanager/SchemaEditorSchemaLoaderUtils.java
Mon May  9 13:02:18 2011
@@ -226,7 +226,7 @@ public class SchemaEditorSchemaLoaderUti
     {
         return Dn.EMPTY_DN
             .add( new Rdn( SchemaConstants.OU_SCHEMA ) )
-            .add( new Rdn( SchemaConstants.CN_AT, schemaObject.getSchemaName() ) )
+            .add( new Rdn( SchemaConstants.CN_AT, Rdn.escapeValue( schemaObject.getSchemaName()
) ) )
             .add( new Rdn( objectPath ) )
             .add( new Rdn( M_OID, schemaObject.getOid() ) );
     }



Mime
View raw message