TS#4635 CR LF is also a valid line separator

This commit is contained in:
Howard Chu 2006-10-07 22:18:15 +00:00
parent dd2721c857
commit e16058d857

View File

@ -822,7 +822,8 @@ ldif_read_record(
if ( last_ch == '\n' ) {
(*lno)++;
if ( line[0] == '\n' ) {
if ( line[0] == '\n' ||
( line[0] == '\r' && line[1] == '\n' )) {
if ( !found_entry ) {
lcur = 0;
top_comment = 0;