public void Run(string query = "") { Console.Write("Content-type: text/html\n\n"); if (query == "") { query = HydrometWebUtility.GetQuery(); } query = System.Uri.UnescapeDataString(query); if (!ValidQuery(query)) { HydrometWebUtility.PrintHydrometTrailer("Error: Invalid query"); return; } WriteCsv(query); }
public void Run(string query = "") { Console.Write("Content-type: text/html\n\n"); if (query == "") { query = HydrometWebUtility.GetQuery(); } query = HttpUtility.HtmlDecode(query); if (!ValidQuery(query)) { HydrometWebUtility.PrintHydrometTrailer("Error: Invalid query"); return; } WriteCsv(query); }