X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlphp%2Fctdlprotocol.php;h=80b5a3219739f227664bb79942009ca944a0d5e1;hb=fa2dd842abb5feedea3e2253255722fcaecc3c6f;hp=6f434822a946f0c6f4e96a4ff0b2ae0f344df122;hpb=ff30a327244aec2c9c77913e494b24fb5b04503c;p=citadel.git diff --git a/ctdlphp/ctdlprotocol.php b/ctdlphp/ctdlprotocol.php index 6f434822a..80b5a3219 100644 --- a/ctdlphp/ctdlprotocol.php +++ b/ctdlphp/ctdlprotocol.php @@ -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_ .= "" . htmlspecialchars($buf) . "
\n" ; + $modified_txt .= "" . htmlspecialchars($buf) . "
\n" ; } else if (!strcasecmp($msgformat, "text/x-citadel-variformat")) {