directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject openldap.g schema parser prefixes double quotes with a backslash
Date Sun, 01 Jun 2008 09:11:07 GMT
Hi,

In testAttributeTypeParseWithDescQuotes() of OpenLdapSchemaParserTest
(http://tinyurl.com/58nhpm) the DESC element contains two double quotes:

  ... DESC 'RFC2256: \"knowledge\" information'\n" ...

The parser in openldap.g adds a backslash before each double quote and
this is also expected in the test:

  assertEquals( "RFC2256: \\\"knowledge\\\" information",
type.getDescription() );

I just wonder what's the reason for adding a backslash?

Regards,
Stefan



Mime
View raw message