Skip to content

Commit afaeffd

Browse files
committed
1 parent ba956ce commit afaeffd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

com_connect.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,14 @@ function com_connect($atts, $thing = '')
521521
$subject = parse_form($subject_form);
522522
}
523523

524-
$sep = IS_WIN ? "\r\n" : "\n";
524+
$sep = "\n";
525+
526+
if (IS_WIN) {
527+
$sep = "\r\n";
528+
} elseif (ini_get('cgi.rfc2616_headers') != 0) {
529+
$sep = "\r\n";
530+
}
531+
525532
$msg = array();
526533
$fields = array();
527534

0 commit comments

Comments
 (0)