From c478b9f9e0fef5f38949202190d60048d4992b8f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 2 Jul 2008 23:19:44 +0000 Subject: [PATCH] - client and server: the client includes global_prefs.xml in scheduler request messages, without checking its contents. One user had apparently edited global_prefs.xml with an XML editor; it had an ")) return "no start tag"; while (fgets(buf, sizeof(buf), fin)) { + // If a line is too long, ignore it. + // This can happen e.g. if the client has bad global_prefs.xml + // This won't be necessary if we rewrite this using XML_PARSER + // + if (!strchr(buf, '\n')) { + while (fgets(buf, sizeof(buf), fin)) { + if (strchr(buf, '\n')) break; + } + continue; + } + if (match_tag(buf, "")) return NULL; if (parse_str(buf, "", authenticator, sizeof(authenticator))) { remove_quotes(authenticator); @@ -340,6 +351,9 @@ const char* SCHEDULER_REQUEST::parse(FILE* fin) { if (match_tag(buf, "")) continue; if (match_tag(buf, "")) continue; if (match_tag(buf, "")) continue; + if (match_tag(buf, "