Added a comma after each msgnum exported. The parser was globbing them all together...
[citadel.git] / ctdlphp / ctdlprotocol.php
index 6f434822a946f0c6f4e96a4ff0b2ae0f344df122..80b5a3219739f227664bb79942009ca944a0d5e1 100644 (file)
@@ -26,7 +26,7 @@ function dbgprintf_wrapin($string, $html)
 {
        if (!CITADEL_DEBUG_HTML){
                if ($html)
-                       debugLog("<< ".$string);
+                       debugLog("<< ".$string."\n");
        }
        else 
                printf($string);
@@ -35,7 +35,7 @@ function dbgprintf_wrapout($string, $html)
 {
        if (!CITADEL_DEBUG_HTML){
                if ($html)
-                       debugLog("<< ".$string);
+                       debugLog("<< ".$string."\n");
        }
        else
                printf($string);
@@ -372,7 +372,7 @@ function become_logged_in($server_parms) {
 function ctdl_get_serv_info() {
        serv_puts("INFO");
        $reply = read_array();
-       if ((count($reply) == 22) &&
+       if ((count($reply) == 23) &&
            substr($reply[0], 0, 1) == "1") {
                $server_info=array();
                $server_info["serv_nodename"]  = $reply[1];
@@ -786,7 +786,7 @@ function ctdl_msg4_from_server() {
                        }
                        else if (!strcasecmp($msgformat, "text/plain")) {
                                $txt .= "\r\n".$buf;
-                               $modified_ .= "<TT>" . htmlspecialchars($buf) . "</TT><BR>\n" ;
+                               $modified_txt .= "<TT>" . htmlspecialchars($buf) . "</TT><BR>\n" ;
 
                        }
                        else if (!strcasecmp($msgformat, "text/x-citadel-variformat")) {